mesa/src
Jose Maria Casanova Crespo 1eaa46da09 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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40180>
2026-03-03 09:32:47 +00:00
..
amd ac/gpu_info: print most of ac_compiler_info 2026-03-03 08:50:12 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi agx: use common code vote lowering 2026-02-25 17:29:29 +00:00
broadcom v3d: flush write jobs before BO replacement in DISCARD_WHOLE path 2026-03-03 09:32:47 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler nir/opt_algebraic: optimize b2i(a) * b to bcsel 2026-03-02 15:58:30 +00:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
etnaviv etnaviv: Limit max line width to 1.0 on GPUs needing wide line emulation 2026-03-01 11:34:56 +00:00
freedreno ir3: Initialize debug once 2026-03-02 22:47:27 +00:00
gallium v3d: flush write jobs before BO replacement in DISCARD_WHOLE path 2026-03-03 09:32:47 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: enable VK_EXT_primitives_generated_query 2026-02-23 17:41:30 +00:00
glx os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
gtest
imagination pvr: suppress VkDescriptorSetLayoutBindingFlagsCreateInfo ignored warn 2026-03-02 15:06:38 +00:00
imgui
intel hasvk: Advertise VK_KHR_maintenance6 2026-03-02 23:16:11 +00:00
kosmickrisp kk: Fix debug printf specifier 2026-02-26 17:37:28 +00:00
loader util,loader: silence asprintf() unused result warnings 2026-02-07 10:07:22 +00:00
mesa st/glsl_to_nir: update state var locations earlier 2026-02-28 23:56:10 +00:00
microsoft dozen: Resolve Seg Fault in dzn_physical_device_create 2026-02-17 15:19:37 +00:00
nouveau nvk: Remove unused cmd.tls_space_needed 2026-02-25 22:42:07 +00:00
panfrost panvk: Advertise VK_ARM_scheduling_controls on CSF 2026-03-02 20:22:07 +00: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/format: Add a util_format_get_depth_bits() helper 2026-02-26 11:15:28 +00:00
virtio venus/ci: Skip invalid SkQP test on ANV 2026-02-26 09:46:11 +01:00
vulkan vulkan: external sync for vk_sync_binary 2026-02-24 14:23:05 +00:00
x11 os: Add support for GNU/HURD compilation and use of dri swrast/llvmpipe. 2026-02-17 08:24:02 +00:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00