mesa/src
Neil Roberts 97f8ec321b v3d/compiler: Lower geometry output store base into offset src
When generating the VPM write instruction for geometry shader outputs,
emit_store_output_gs ends up adding the base and offset arguments
together with an ADD instruction. The addition was done at the VIR level
after scheduling so it always ends up right next to the corresponding
stvpm instruction. Most of the time the offset is constant but nothing
does any constant folding at the VIR level.

This patch makes it instead fold the addition into the offset at the NIR
level in v3d_nir_lower_io so that the NIR-level constant folding can get
rid of the addition most of the time.

v2: Use nir_iadd_imm to simplify the code. (Eric Anholt)

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5825>
2020-07-16 08:48:06 +02:00
..
amd radv: destroy the base object if VkCreateInstance() failed 2020-07-15 13:53:37 +02:00
broadcom v3d/compiler: Lower geometry output store base into offset src 2020-07-16 08:48:06 +02:00
compiler Android: Fixes for Q and R 2020-07-15 20:49:24 +00:00
drm-shim meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
egl egl/wayland: add missing newline between functions 2020-07-13 09:08:00 +00:00
etnaviv etnaviv: replace all dup() with os_dupfd_cloexec() 2020-06-18 02:09:56 +00:00
freedreno Android: Fixes for Q and R 2020-07-15 20:49:24 +00:00
gallium radeonsi: prevent a gfx10_ngg_calculate_subgroup_info failure for TES+NGG GS 2020-07-16 04:04:52 +00:00
gbm gbm: document that gbm_bo_map exposes a linear view 2020-06-03 10:09:52 +00:00
getopt
glx glx: drop always-true #ifdef 2020-07-13 09:08:00 +00:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui meson: drop intel_ prefix on imgui_core 2019-12-10 15:16:02 +00:00
intel intel/ehl: Add new PCI-IDs 2020-07-14 21:10:04 -07:00
loader Revert "loader/dri3: Check for window destruction in dri3_wait_for_event_locked" 2020-07-03 09:55:50 +00:00
mapi mapi: x86: Fix dynamic entries in x86 tsd stubs. 2020-06-26 18:28:01 +00:00
mesa mesa: change dsa texture error codes for GL 4.6 2020-07-16 11:35:30 +10:00
panfrost panfrost: Identify zs_samples field 2020-07-15 22:19:37 +00:00
util util: Share a single function pointer for the 4-byte rgba unpack function. 2020-07-07 18:19:23 +00:00
vulkan meson: fix android vulkan build 2020-07-14 09:34:54 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00