mesa/src
Max R 6427dd9056 virgl: Fix crash when no VE bound
While OpenGL requires that VE must be bound,
other mesa frontends, f.e. d3d10umd, can emit draw
without any VE bound. Which led to vctx->vertex_elements
to be null, which lead to null derefence. Add check
for ve not being null to avoid that.

Supported by virglrenderer@b8ac10db

Reviewed-by: Feng Jiang <jiangfeng@kylinos.cn>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27308>
2024-02-05 08:41:23 +00:00
..
amd radv: don't submit 0 length on UVD either. 2024-02-05 08:14:26 +00:00
android_stub
asahi nir: rework and fix rotate lowering 2024-01-22 10:27:44 +00:00
broadcom v3dv: refactor to use DETECT_OS_ANDROID instead of ANDROID 2024-02-01 19:29:49 +00:00
c11 util/meson: Getting mesa util core to be self contained 2023-08-02 03:41:24 +00:00
compiler nir: add vertex divergence into nir_divergence_analysis 2024-02-02 16:45:52 -05:00
drm-shim compiler,vulkan,drm-shim: Remove unused include directories from meson.build 2023-10-27 01:35:10 +00:00
egl egl: refactor to use DETECT_OS_ANDROID instead of ANDROID 2024-02-01 19:29:49 +00:00
etnaviv etnaviv/isa: Add missing dep of encode.py/decode.py calls on isa.py 2024-01-30 18:05:43 +00:00
freedreno freedreno/drm: Fix teardown crash harder 2024-02-02 20:28:58 +00:00
gallium virgl: Fix crash when no VE bound 2024-02-05 08:41:23 +00:00
gbm gbm: delete some zink handling 2023-10-09 18:43:09 +00:00
getopt
glx glx: Handle IGNORE_GLX_SWAP_METHOD_OML regardless of GLX_USE_APPLEGL 2023-12-18 17:52:09 +00:00
gtest gtest: backport ansi color fix 2023-08-18 21:33:14 +00:00
imagination vulkan: enable VK_KHR_shader_expect_assume 2024-01-30 19:09:42 +00:00
imgui
intel intel/blorp: add a TODO note about stencil buffer resolve 2024-02-02 18:28:39 +00:00
loader tree-wide: use __normal_user() everywhere instead of writing the check manually 2024-01-30 12:45:54 +00:00
mapi mesa/main: add support for EXT_texture_storage 2024-02-01 12:30:58 +00:00
mesa nir: replace lower_io_variables with a GLSL NIR flag 2024-02-02 16:45:49 -05:00
microsoft dzn: Use blits for all non-averaging resolves 2024-02-02 01:19:52 +00:00
nouveau nouveau/tests: fix null dereference 2024-02-02 23:36:59 +00:00
panfrost panfrost: fix UB caused by shifting signed int too far 2024-02-02 14:56:20 +00:00
tool perfetto/pps-producer: add optimized cpu/gpu timestamp correlation support 2023-11-09 13:22:48 +00:00
util util: Allow kcmp on FreeBSD 2024-02-03 17:19:31 +00:00
virtio venus: update tracepoints to align with later optimizations 2024-02-03 00:35:39 +00:00
vulkan vk_image.c: #ifndef _WIN32 --> DETECT_OS_LINUX + DETECT_OS_BSD 2024-02-02 23:11:21 +00:00
.clang-format nir: add _safe variants of nir_foreach_reg_load/store 2023-12-15 17:19:28 +00:00
meson.build virgl: Fix compilation on MSVC 2024-02-05 08:41:22 +00:00