mesa/src
Emma Anholt 1048e6113e nir_to_tgsi: Use nir_opt_offsets for load_ubo_vec4.
This helps non-native-integers hardware where relative addressing of UBOs
has a constant offset field, and having addressing math (particularly for
D3D9) emitted as ALU ops ends up running us out of constants.  For
native-integers drivers (such as softpipe), the possible-overflow check
typically triggers and we end up not folding.

r300:
total instructions in shared programs: 1279167 -> 1278731 (-0.03%)
instructions in affected programs: 50834 -> 50398 (-0.86%)
total temps in shared programs: 213736 -> 213687 (-0.02%)
temps in affected programs: 598 -> 549 (-8.19%)
total consts in shared programs: 952973 -> 952850 (-0.01%)
consts in affected programs: 26776 -> 26653 (-0.46%)

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/opt_offsets: Also apply the max offset to top-level constant folding. 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_to_tgsi: Use nir_opt_offsets for 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