mesa/src
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
..
amd mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
android_stub android_stub: update platform headers to include atrace 2021-10-09 00:42:32 +00:00
asahi agx: Handle discard intrinsics 2022-01-16 18:23:28 +00:00
broadcom nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
compiler nir: Add a .base field to nir_load_ubo_vec4. 2022-01-19 22:28:34 +00:00
drm-shim drm-shim: Support kernels with >4k pages 2021-08-13 23:33:52 +00:00
egl egl/dri2: short-circuit dri2_make_current when possible 2022-01-17 10:32:01 +00:00
etnaviv ci: Uprev piglit to af1785f31 2022-01-10 21:52:42 +00:00
freedreno nir: Add a .base field to nir_load_ubo_vec4. 2022-01-19 22:28:34 +00:00
gallium nir: Add a .base field to nir_load_ubo_vec4. 2022-01-19 22:28:34 +00:00
gbm replace 0 with NULL for NULL pointers 2022-01-10 22:53:32 +00:00
getopt
glx replace 0 with NULL for NULL pointers 2022-01-10 22:53:32 +00:00
gtest gtest: Fix output of array ASSERT/EXPECT macros 2021-11-11 09:53:09 -08:00
hgl
imgui
intel intel/brw: drop gl header from the brw backend. 2022-01-19 21:54:58 +00:00
loader loader: Restore i915g support. 2021-12-09 09:05:23 -08:00
mapi mapi: generate correct dispatch for EXT_draw_instanced 2022-01-03 21:37:34 +00:00
mesa nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
microsoft mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
nouveau
panfrost panfrost/ci: Fix piglit tests expectations on G52 2022-01-18 18:42:05 +00:00
tool pps: increase intel.cfg buffer size 2022-01-14 20:17:44 +00:00
util includes: add windows lean and mean guard. 2022-01-19 21:54:58 +00:00
virtio venus: VkExternalImageFormatProperties is optional 2022-01-13 02:59:51 +00:00
vulkan vulkan/runtime: fix accessing NULL pointers detected by UBSAN 2022-01-19 16:16:08 +00:00
meson.build meson: make mesa/tests/glx depend on gallium 2021-12-07 13:03:53 +00:00