mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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 commitd0163f1096)
This commit is contained in:
parent
e09031bbd3
commit
78dbc63715
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue