mesa/src/compiler
Emma Anholt f6ffefba3e nir: Apply nir_opt_offsets to nir_intrinsic_load_uniform as well.
Doing this for ir3 required adding a struct for limits of how much base to
fold in (which NTT wants as well for its case of shared vars), otherwise
the later work to lower to the 1<<9 word limit would emit more
instructions.

The shader-db results are that sometimes the reduction in NIR instruction
count results in the fewer sampler prefetches due to the shader being
estimated to be shorter (dota2, nexuiz):

total instructions in shared programs: 8996651 -> 8996776 (<.01%)
total cat5 in shared programs: 86561 -> 86577 (0.02%)

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14023>
2022-01-16 19:11:29 +00:00
..
clc clc: Use kernel_arg_type_qual string to add const type qualifier to arg metadata 2021-11-15 07:47:00 -08:00
glsl mesa/st: do not expose ARB_shader_image_load_store if not fully implemented 2022-01-13 09:12:35 +00:00
isaspec isaspec: Remove duplicate return statement. 2022-01-05 22:13:48 -08:00
nir nir: Apply nir_opt_offsets to nir_intrinsic_load_uniform as well. 2022-01-16 19:11:29 +00:00
spirv spirv,radv: Fix some GL enum comments 2022-01-14 15:08:09 +00:00
builtin_type_macros.h nir: Add an 'external' texture type for parity with samplers 2021-12-06 14:21:38 +00:00
glsl_types.cpp nir: Add an 'external' texture type for parity with samplers 2021-12-06 14:21:38 +00:00
glsl_types.h compiler/types: Add a texture type 2021-10-16 05:49:34 +00:00
meson.build spirv: Use a single binary for gtests 2021-10-20 17:55:36 +00:00
nir_types.cpp compiler/types: Add a wrap_in_arrays helper 2021-10-16 05:49:34 +00:00
nir_types.h compiler/types: Add a wrap_in_arrays helper 2021-10-16 05:49:34 +00:00
shader_enums.c compiler: add new MESH_VIEW_COUNT/MESH_VIEW_INDICES system values 2022-01-11 22:45:23 +00:00
shader_enums.h compiler: add new MESH_VIEW_COUNT/MESH_VIEW_INDICES system values 2022-01-11 22:45:23 +00:00
shader_info.h spirv: handle multiview bits of SPV_NV_mesh_shader 2022-01-11 22:45:23 +00:00