mesa/src/broadcom
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
..
ci v3d: flush write jobs before BO replacement in DISCARD_WHOLE path 2026-03-03 09:32:47 +00:00
cle v3d/v3dv: drop manual log2_tile_width/height asserts. 2026-03-02 21:45:41 +00:00
clif build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
common broadcom: don't hardcode pagesize 2026-02-05 08:53:37 +00:00
compiler v3d: add support for GL_ARB_sample_shading 2026-02-25 10:03:39 +00:00
drm-shim v3d/drm-shim: add support for multisync 2025-08-04 08:06:36 +02:00
ds mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
perfcntrs broadcom: Add perfcount library 2024-12-02 14:13:24 +00:00
qpu broadcom/compiler: enable umul24 and imul24 ALU opcodes 2025-11-26 13:32:39 +00:00
simulator treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
vulkan v3d/v3dv: drop manual log2_tile_width/height asserts. 2026-03-02 21:45:41 +00:00
.editorconfig
meson.build broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00