mesa/src
Charmaine Lee 4393be8291 mesa/st: fix reference to nir->info after nir_to_tgsi
The nir shader memory is freed in nir_to_tgsi(), but the already
freed shader info is referenced later when create compute state.
To avoid referencing the freed memory, copy the shader info first before
calling nir_to_tgsi.

Fixes vmx crash running aztec on SVGA driver.
Fixes: 580f1ac473 ("nir: Extract shader_info->cs.shared_size out of union")

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17999>
2022-08-11 18:51:17 +00:00
..
amd radv: Fix stack size calculation with stage ids 2022-08-11 17:59:47 +00:00
android_stub
asahi agx: Only emit the used components of gl_FragCoord 2022-08-07 20:43:54 -04:00
broadcom nir: add a nir_opt_if_options enum 2022-08-10 12:55:39 +00:00
c11 c11: Implement and use of thrd_current properly on win32 2022-08-10 20:14:15 +00:00
compiler nir: add nir_instr_as_str 2022-08-11 16:17:46 +00:00
drm-shim drm-shim: Cleanup on device file close 2022-05-02 19:50:33 +00:00
egl egl/wgl: Fix some awkward sizeof formatting 2022-08-10 21:00:43 +00:00
etnaviv util/list: rename LIST_ENTRY() to list_entry() 2022-07-28 10:10:44 +00:00
freedreno nir: add a nir_opt_if_options enum 2022-08-10 12:55:39 +00:00
gallium svga: compare graphics shader stages against COMPUTE 2022-08-11 18:41:46 +00:00
gbm gbm: Add USE_FRONT_RENDERING flag 2022-08-05 00:57:38 +00:00
getopt
glx glx: Remove usage of USE_ELF_TLS 2022-07-29 23:59:12 +00:00
gtest gtest: Fix maybe-uninitialized compiler warning 2022-06-29 21:02:18 +00:00
hgl
imagination pvr: Fix bo mapping on alloc with PVR_BO_ALLOC_FLAG_CPU_ACCESS. 2022-08-11 09:59:05 +00:00
imgui
intel anv: don't return incorrect error code for vkCreateDescriptorPool 2022-08-11 14:29:33 +00:00
loader loader: allow DRI_PRIME=vendor_id:device_id syntax 2022-08-08 16:52:44 +00:00
mapi mapi: Remove usage of USE_ELF_TLS 2022-07-29 23:59:11 +00:00
mesa mesa/st: fix reference to nir->info after nir_to_tgsi 2022-08-11 18:51:17 +00:00
microsoft microsoft/compiler: Change calls to NIR_INSTR_UNSUPPORTED to log to dxil_logger instead 2022-08-11 16:17:46 +00:00
nouveau nir: Split usub_sat lowering flag from uadd_sat. 2022-07-22 17:54:28 +00:00
panfrost ci: Upgrade deqp-runner to 0.15.0. 2022-08-07 02:11:46 +00:00
tool meson/pps: Check if libdrm exists to compile pps 2022-06-22 11:52:36 +03:00
util c11: Implement and use of thrd_current properly on win32 2022-08-10 20:14:15 +00:00
virtio virgl: add support for hardware video acceleration 2022-08-11 10:21:03 +00:00
vulkan vulkan/device_select: allow DRI_PRIME=vendor_id:device_id 2022-08-08 16:52:44 +00:00
meson.build meson: Remove usage of use_elf_tls 2022-07-29 23:59:11 +00:00