mesa/src
Jose Maria Casanova Crespo fb8f81a1d8 v3d: flush write jobs before BO replacement in DISCARD_WHOLE path
The DISCARD_WHOLE_RESOURCE path in v3d_map_usage_prep() replaces the
resource's BO with v3d_resource_bo_alloc(). As the RCL resolves
rsc->bo at job submit in emit_rcl() any pending write job would
store to the new BO instead of the old one, corrupting the new
written data.

This is adressed by flushing all pending write jobs affecting the
resource before replacing its BO.

This fixes multiple tests where data copied to a renderbuffer was
overwritten by a previos GPU clear. Test are from the subgroup:
dEQP-GLES31.functional.copy_image.non_compressed.viewclass_32_bits.*

Fixes: 45bb8f2957 ("broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
(cherry picked from commit 1eaa46da09)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40359>
2026-03-11 23:21:09 +01:00
..
amd radv: fix copying images with different swizzle modes on SDMA7 2026-03-11 23:21:09 +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: flush write jobs before BO replacement in DISCARD_WHOLE path 2026-03-11 23:21:09 +01:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler nir/gather_info: Add support for panfrost tile load/store intrinsics 2026-02-25 14:22:23 +01:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl mesa: retain const qualifier from pointer 2026-02-11 14:54:47 +00:00
etnaviv etnaviv/ci: Add gitlab-ci-inc.yml to file list 2026-01-19 20:46:38 +00:00
freedreno ir3: Fix constlen trimming when more than one stage is trimmed 2026-03-11 23:21:08 +01:00
gallium v3d: flush write jobs before BO replacement in DISCARD_WHOLE path 2026-03-11 23:21:09 +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: fix const qualifier warnings found with C23 glibc support 2026-02-11 14:54:47 +00:00
gtest
imagination pvr: only specially handle gfx subcmd for BeginQuery 2026-03-11 23:21:08 +01:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel anv: dirty all push constant stages in simple shader 2026-03-11 23:21:08 +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 st/bitmap: only release YUV samplerviews 2026-03-11 23:21:08 +01:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nvk: Reenable compression support with nouveau 1.4.2 2026-02-11 14:54:47 +00:00
panfrost panvk: Also load output attachments with LOAD_OP_NONE+STORE_OP_NONE 2026-02-25 14:22:23 +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 util: bring back fix to avoid strict aliasing bugs in xxhash 2026-02-25 14:22:23 +01:00
virtio venus: sync protocol for strict aliasing compliance 2026-02-25 14:22:22 +01:00
vulkan vulkan/cmd_queue: Fixup stride for multi draws 2026-02-25 14:22:20 +01:00
x11 treewide: strip unneeded inc_gallium inc_gallium_aux 2025-11-13 22:01:43 +00: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