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>
This commit is contained in:
Jose Maria Casanova Crespo 2025-06-20 15:32:10 +02:00 committed by Marge Bot
parent 04d283c628
commit d0163f1096

View file

@ -430,6 +430,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_set_blit_surface(&dbuf, pctx, info->dst.resource,
info->dst.format, info->dst.level,