mesa/src
Konstantin Kharlamov 275cf62e20 loader/dri3: temporarily work around a crash when front is NULL
Commit c65bde7b1e introduced a regression where under certain
circumstances `front` may be NULL, thus leading to a crash. It's not
currently known what exactly causes `front` to become NULL, nor we can
revert the offending commit, because there had been too many unrelated
changes that now depend on this commit.

So until someone comes up with a proper fix, let's add a workaround so
instead of crashing we just return from the function early.

This commit was tested with the bug `8982` and helps with the crash
with no other noticeable problems.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8982
Fixes: c65bde7b1e ("frontend/dri: inline __DRIdrawable in dri_drawable, make __DRIdrawable opaque")
Cc: mesa-stable
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23093>
2023-05-18 06:25:46 +00:00
..
amd nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
broadcom nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler glsl: Delete dead intrinsics 2023-05-17 20:34:59 -07:00
drm-shim drm-shim: Use anonymous file for file override 2023-05-16 04:31:22 +00:00
egl egl/loader: move crtc resource infrastructure as common helper 2023-05-11 10:51:11 +00:00
etnaviv mesa/main: drop use_legacy_math_rules 2023-05-04 06:11:44 +00:00
freedreno nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
gallium r600/sfn: use correct FS output location if not all outputs are used 2023-05-18 06:09:50 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx glx: fix build with APPLEGL 2023-05-15 03:50:30 +00:00
gtest gtest: Update to 1.13.0 2023-05-14 11:09:02 +00:00
imagination nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
imgui
intel nir: Drop unused argument from nir_ssa_dest_init_for_type 2023-05-17 23:46:16 +00:00
loader loader/dri3: temporarily work around a crash when front is NULL 2023-05-18 06:25:46 +00:00
mapi mesa: Add EXT_instanced_arrays support 2023-04-11 10:22:35 +00:00
mesa mesa/main: Exit early when trying to create an unsupported context API 2023-05-18 01:25:29 +00:00
microsoft nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
nouveau treewide: Stop lowering legacy atomics 2023-05-16 22:36:21 +00:00
panfrost nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
tool pps: Fix build errors. 2023-03-13 01:22:46 +00:00
util util/tests: adjust for new gtest 2023-05-14 11:09:01 +00:00
virtio venus: bump ring space to 128K 2023-05-16 22:06:56 +00:00
vulkan vulkan/pipeline_cache: don't log warnings for client-invisible caches 2023-05-17 20:40:12 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00