mesa/src
Ian Romanick d52a423f60 nir/gcm: Clear out pass_flags before starting
With this pass enabled in Intel drivers, running shader-db on
shaders/unity/38.shader_test resulted in

Program received signal SIGSEGV, Segmentation fault.
gcm_schedule_early_src (src=0x555555d45348, void_state=0x7fffffffba40) at ../../SOURCE/master/src/compiler/nir/nir_opt_gcm.c:297
297	   if (info->early_block->index < src_info->early_block->index)
(gdb) print src_info->early_block
$1 = (nir_block *) 0x0

I tracked this down to an early exit from gcm_schedule_early_instr on
the parent instruction because instr->pass_flags was 0x1c.  That
should be an impossible value for this pass, so I inferred that
pass_flags must have dirt left from some previous pass.

Fixes: 8dfe6f672f ("nir/GCM: Use pass_flags instead of bitsets for tracking visited/pinned")

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/597>
(cherry picked from commit 436668874a)
2021-07-22 23:05:40 +01:00
..
amd aco/optimizer: ensure to not erase high bits when propagating packed constants 2021-07-22 23:05:39 +01:00
android_stub android: add some more stub functions for cross compilation 2021-03-25 06:06:16 +00:00
broadcom broadcom/compiler: emit TMU flush before a jump 2021-07-22 23:05:40 +01:00
compiler nir/gcm: Clear out pass_flags before starting 2021-07-22 23:05:40 +01:00
drm-shim drm-shim: report support for timeline semaphores 2021-02-09 21:08:52 +00:00
egl egl/wayland: Allow EGLSurface to outlive wl_egl_window 2021-07-22 23:05:40 +01:00
etnaviv etnaviv: tell the truth if alpha-test is supported 2021-04-08 19:25:26 +00:00
freedreno freedreno/ir3: Don't force RTNE if rounding mode is undefined 2021-07-22 21:47:01 +01:00
gallium radeonsi: Check aux_context on si_destroy_screen() 2021-07-22 23:05:40 +01:00
gbm egl: fix software flag in _eglAddDevice call on DRM 2021-03-26 10:32:31 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: revert "Downgrade sRGB-ful fbconfigs" 2021-05-03 23:55:02 +02:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel anv: Handle errors properly in anv_i915_query 2021-07-22 23:05:39 +01:00
loader loader: prefer iris on Android 2021-03-31 06:28:18 +00:00
mapi mesa: fix incomplete GL_NV_half_float implementation 2021-04-26 19:05:42 +02:00
mesa st/mesa: always use PIPE_USAGE_STAGING for GL_MAP_READ_BIT usage 2021-07-22 23:05:40 +01:00
microsoft microsoft/compiler: Fix MSVC warning C4334 (32bit shift cast to 64bit) 2021-04-20 19:43:26 +02:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-07-13 00:30:11 +01:00
util v3d/driconf: Expose non-MSAA texture limits for mutter and gnome-shell 2021-07-22 23:05:39 +01:00
virtio venus: Fix zero-initialized fd causing apps to hang/crash 2021-05-18 23:02:27 +02:00
vulkan vulkan: allocate host-visible memory for swapchain images 2021-07-14 22:42:22 +01:00
meson.build venus: add driver skeleton 2021-04-08 17:15:37 +00:00