From e8c151f09f5195a16437ddf742122285b097b344 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 26 May 2025 12:52:43 +0200 Subject: [PATCH] v3d: fix incorrect resource unref Reviewed-by: Juan A. Suarez Part-of: --- src/gallium/drivers/v3d/v3d_resource.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index 3b3823839f7..89dbb2ed86b 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -1212,8 +1212,7 @@ v3d_flush_resource(struct pipe_context *pctx, struct pipe_resource *prsc) rsc->size = new_rsc->size; rsc->tiled = new_rsc->tiled; - struct pipe_resource *new_prsc = (struct pipe_resource *)&new_rsc; - pipe_resource_reference(&new_prsc, NULL); + pipe_resource_reference((struct pipe_resource **)&new_rsc, NULL); } }