mesa/src/intel
Kenneth Graunke 0a1c47074b intel/compiler: Fix illegal mutation in get_nir_image_intrinsic_image
get_nir_image_intrinsic_image() was incorrectly mutating the value held
by the register which holds the intrinsic's first source (image index).

If this happened to be the register for an SSA def which is also used
elsewhere in the program, this meant that we would clobber that value
in subsequent uses.

Note that this only affects i965, because neither anv nor iris use the
binding table start sections, so nothing is ever added here.

Fixes KHR-GL46.compute_shader.resources-max on i965 with Eric Anholt's
MR !3240 applied.  That MR reorders SSBOs and ABOs, so that test uses
image 0 and SSBO 0, causing this code to brilliantly add binding table
index 45 to both the image (correct) and the SSBO (bzzt, wrong!).

Fixes: 09f1de97a7 ("anv,i965: Lower away image derefs in the driver")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3404>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3404>
2020-01-15 19:25:35 +00:00
..
blorp intel/blorp: Fill out all the dwords of MI_ATOMIC 2020-01-13 21:48:00 +00:00
common intel: add mi_builder_test for gen12 2019-12-11 15:38:19 +00:00
compiler intel/compiler: Fix illegal mutation in get_nir_image_intrinsic_image 2020-01-15 19:25:35 +00:00
dev intel: Use similar brand strings to the Windows drivers 2020-01-13 19:42:35 -08:00
genxml genxml: Remove a non-existant HW bit 2020-01-09 18:40:20 -06:00
isl intel/isl: Add MOCS settings to isl_device. 2019-11-12 20:41:52 +00:00
perf i965/iris/perf: factor out frequency register capture 2019-12-18 14:23:17 +02:00
tools intel/dump_gpu: handle context create extended ioctl 2019-10-30 21:58:31 +02:00
vulkan anv: Enable Vulkan 1.2 support 2020-01-15 08:34:57 -06:00
Android.blorp.mk intel: android: remove libdrm_intel requirement 2017-03-30 19:07:23 +01:00
Android.common.mk android: static link with libexpat with Android O+ 2019-03-25 10:11:57 +02:00
Android.compiler.mk android: fix build issues with brw_nir_trig_workarounds.c 2017-10-04 07:39:05 +03:00
Android.dev.mk drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
Android.genxml.mk intel/genxml: generate pack files for gen12 on android builds 2019-08-28 13:38:33 -07:00
Android.isl.mk intel/isl: build android libmesa_isl for gen12 2019-08-28 13:38:33 -07:00
Android.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.perf.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.vulkan.mk anv: implement VK_INTEL_performance_query 2019-10-23 05:41:15 +00:00
Makefile.perf.am i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Makefile.sources anv: Rework push constant handling 2019-11-18 18:35:14 +00:00
meson.build meson: only build imgui when needed 2019-11-25 07:51:56 +00:00