mesa/src
Mike Blumenkrantz cbc172ecb2
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
mesa/st/samplerview: explicitly block releasing in-use samplerviews
st_texture_set_sampler_view() currently allows only one samplerview for
a given texobj per context. in a scenario where the same texobj is
bound multiple times with different samplerviews (e.g., SRGB) for the
same draw like

samplerviews[] = {view0, view1}

then st_texture_set_sampler_view() will release view0 while creating view1
before either view is actually set to the driver, and then the driver will explode

this is gross, but the best solution which avoids infinite memory ballooning
from bufferview offsets is to pass through the array of views during creation
to ensure that the cache doesn't try to prune a view it just created

caught by Left 4 Dead 2

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/15045

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
(cherry picked from commit 3264adf863)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
2026-03-18 16:04:34 +01:00
..
amd radv/rt: Fix shared ray query stack on top of application LDS 2026-03-17 18:59:17 +01:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi hk: Fix crash in hk_handle_passthrough_gs 2026-02-25 14:22:24 +01:00
broadcom v3d: reject fast TLB blit when RT formats don't match 2026-03-11 23:21:09 +01:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler vtn: Fix vtn_mediump_upconvert_value() with transposed matrices 2026-03-17 18:59:23 +01:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
etnaviv etnaviv/ci: Add gitlab-ci-inc.yml to file list 2026-01-19 20:46:38 +00:00
freedreno tu/kgsl: Better detection of sparse support 2026-03-17 18:59:18 +01:00
gallium lavapipe: fix mesh property exports 2026-03-17 18:59:21 +01:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: Add VK_EXT_frame_boundary support 2026-01-20 20:27:10 +00:00
glx glx: guard glx_screen frontend_screen member 2026-03-11 23:21:11 +01:00
gtest
imagination pco: fix a typo in the check for optimization looping 2026-03-11 23:21:11 +01:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel anv: Fix Wa_14021821874, Wa_14018813551, Wa_14026600921 2026-03-11 23:21:12 +01:00
kosmickrisp kk: Fix graphics pipeline serialization 2026-02-25 14:22:22 +01:00
loader loader: fix UB in wayland helper code. 2026-01-03 07:56:38 +00:00
mesa mesa/st/samplerview: explicitly block releasing in-use samplerviews 2026-03-18 16:04:34 +01:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nvk/mme: Add missing nullcheck in nvk_mme_test_state_state 2026-03-17 18:58:56 +01:00
panfrost panvk/csf: use DEFERRED_FLUSH for fragment job cache flush 2026-03-17 18:58:40 +01:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps/meson: minor refactor for pps_deps 2025-11-08 18:39:00 -08:00
util driconf: force_vk_vendor on No Man's Sky + NVK 2026-03-11 23:21:11 +01:00
virtio venus: force prime blit on Nvidia GPU 2026-03-17 12:39:24 +01:00
vulkan wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
x11 x11: Add helper util to check for xshm support 2026-03-11 23:21:10 +01:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build kk: Add KosmicKrisp 2025-10-20 17:46:38 +00:00