mesa/src
Timothy Arceri a34cc97ca3 glsl: when NIR linker enable use it to resize uniform arrays
Here we turn on uniform array resizing in the NIR linker and disable
the GLSL IR resizing pass when the NIR linker is enabled.

This will potentially make uniform arrays smaller due to NIR
optimising away more uniform uses.

Shader-db results (SKL):

total instructions in shared programs: 14947192 -> 14944093 (-0.02%)
instructions in affected programs: 138088 -> 134989 (-2.24%)
helped: 822
HURT: 4

total cycles in shared programs: 324868402 -> 324794597 (-0.02%)
cycles in affected programs: 3904170 -> 3830365 (-1.89%)
helped: 2333
HURT: 1485

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4910>
2020-06-03 10:34:22 +00:00
..
amd radv: enable zero VRAM for all VKD3D (DX12->VK) games 2020-06-03 08:00:19 +02:00
broadcom nir: add callback to nir_remove_dead_variables() 2020-06-03 02:22:23 +00:00
compiler glsl: when NIR linker enable use it to resize uniform arrays 2020-06-03 10:34:22 +00:00
drm-shim meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
egl meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
etnaviv meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
freedreno nir: add callback to nir_remove_dead_variables() 2020-06-03 02:22:23 +00:00
gallium nir: add callback to nir_remove_dead_variables() 2020-06-03 02:22:23 +00:00
gbm gbm: document that gbm_bo_map exposes a linear view 2020-06-03 10:09:52 +00:00
getopt meson: build getopt when using msvc 2019-09-10 20:36:47 +00:00
glx meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +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/compiler: Extract control barriers from scoped barriers 2020-06-03 07:39:52 +00:00
loader meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
mapi meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
mesa i965: call brw_nir_lower_uniforms() after uniform linking is complete 2020-06-03 10:34:22 +00:00
panfrost pan/mdg: Don't double-replicate blend on T720 2020-06-03 00:32:24 +00:00
util util: add BITSET_LAST_BIT() helper 2020-06-03 10:34:22 +00:00
vulkan vulkan-overlay/meson: use install_data instead of configure_file 2020-06-01 18:59:18 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
SConscript scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00