v3d: Avoid fast TLB blit if reused job doesn't store the color buffer

Fixes: 66de8b4b5c ("v3d: add a faster TLB blit path")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35739>
(cherry picked from commit d0163f1096)
This commit is contained in:
Jose Maria Casanova Crespo 2025-06-20 15:32:10 +02:00 committed by Eric Engestrom
parent e09031bbd3
commit 78dbc63715
2 changed files with 5 additions and 1 deletions

View file

@ -3644,7 +3644,7 @@
"description": "v3d: Avoid fast TLB blit if reused job doesn't store the color buffer",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "66de8b4b5cbbb317130dde765201b5720394ed00",
"notes": null

View file

@ -436,6 +436,10 @@ v3d_tlb_blit_fast(struct pipe_context *pctx, struct pipe_blit_info *info)
if (idx < 0)
return;
/* We can't use this blit path if the color buffer is not stored */
if (!(job->store & (PIPE_CLEAR_COLOR0 << idx)))
return;
struct pipe_surface *dbuf =
v3d_get_blit_surface(pctx, info->dst.resource,
info->dst.format, info->dst.level,