mesa/src/compiler
Emma Anholt 700d2fbd0a nir: Add a .base field to nir_load_ubo_vec4.
This lets nir-to-tgsi fold the constant offset of addressing calculations
into the CONST[] reference, which is important for D3D9-era compatibility:
HW of that age has limited uniform space, and if we do the addressing math
as math in the shader for dynamic indexing, the nir_load_consts end up
taking up uniforms we don't have available.

r300:
total instructions in shared programs: 1279699 -> 1279167 (-0.04%)
instructions in affected programs: 134796 -> 134264 (-0.39%)
total instructions in shared programs: 1279699 -> 1279167 (-0.04%)
instructions in affected programs: 134796 -> 134264 (-0.39%)
total temps in shared programs: 213912 -> 213736 (-0.08%)
temps in affected programs: 2166 -> 1990 (-8.13%)
total consts in shared programs: 953237 -> 952973 (-0.03%)
consts in affected programs: 45980 -> 45716 (-0.57%)

Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14309>
2022-01-19 22:28:34 +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 nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
isaspec isaspec: Remove duplicate return statement. 2022-01-05 22:13:48 -08:00
nir nir: Add a .base field to nir_load_ubo_vec4. 2022-01-19 22:28:34 +00:00
spirv mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
builtin_type_macros.h glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.cpp glsl: add vec5 glsl types 2022-01-18 16:10:35 +08: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_gl_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.cpp nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +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 mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
shader_info.h mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00