mesa/src
Caio Marcelo de Oliveira Filho 96de6d7754 spirv: Don't remove variables used by resource indexing intrinsics
In Vulkan, for some variable modes, the generated NIR will have derefs
pointing to resource index intrinsics instead of the variable.  This
was letting nir_remove_dead_variables pass remove those variables,
which would lose information relevant for later passes after
spirv2nir.

Add a set to keep track of such variables and prevent them to be
removed when producing the NIR output.

Issue reported by Rhys.

Fixes: c4c9c780b1 ("spirv: Remove more dead variables")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8706>
(cherry picked from commit 10b3eecd36)
2021-01-26 09:10:55 -08:00
..
amd radv: fix divide by zero with no tesselation params 2021-01-26 09:09:12 -08:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom v3d: mark some variables static const 2021-01-13 07:24:32 +00:00
compiler spirv: Don't remove variables used by resource indexing intrinsics 2021-01-26 09:10:55 -08:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/dri2: fix image loaderPrivate type mixup 2020-12-24 00:05:15 +09:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno turnip: implement indirect dispatch 2021-01-13 09:55:47 +00:00
gallium intel/gen12: Fix memory corruption issues in fused Gen12 parts. 2021-01-26 09:08:46 -08:00
gbm egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
getopt
glx glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-25 10:07:15 -08:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel anv: Skip CCS ambiguate which preceed fast-clears 2021-01-26 09:08:47 -08:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi glapi: fix unused-function warning 2020-12-01 16:51:01 +00:00
mesa mesa/main: remove leftover bumpmap code 2021-01-25 10:07:19 -08:00
microsoft nir: replace .lower_sub with .has_fsub and .has_isub 2021-01-11 19:13:51 +00:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/decode: Free mapped memory objects on BO unreference 2021-01-21 13:26:35 -08:00
util util: Fix pointer to integer conversion error when using libunwind 2021-01-19 09:32:42 -08:00
virtio virgl: Enable GL_EXT_texture_sRGB_RG8 2021-01-04 21:19:35 +00:00
vulkan wsi/x11: Use get_screen_resources_current in wsi_x11_detect_xwayland 2021-01-20 09:22:16 -08:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00