From 69708ff3f579248538fb54f96715ff72d4dd18c5 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Tue, 14 Apr 2026 23:50:01 +0200 Subject: [PATCH] v3d: mark mapped BO as initialized for valgrind When we unsychronized map a BO, we tell Valgrind that the content is not initialized yet. But we forgot to mark it as defined when the map finishes, which leads to several conditional jump or move depends on uninitialised value(s) warnings when using Valgrind. Signed-off-by: Juan A. Suarez Romero Acked-by: Iago Toral Quiroga Part-of: --- src/gallium/drivers/v3d/v3d_bufmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c index dea5e72b9d7..e82fd069b18 100644 --- a/src/gallium/drivers/v3d/v3d_bufmgr.c +++ b/src/gallium/drivers/v3d/v3d_bufmgr.c @@ -537,6 +537,7 @@ v3d_bo_map(struct v3d_bo *bo) mesa_loge("BO wait for map failed"); abort(); } + VG(VALGRIND_MAKE_MEM_DEFINED(map, bo->size)); return map; }