mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 03:08:19 +02:00
zink: block more flushes during unordered blits
Fixes:89aa363593("zink: block oom flushes during unordered blits") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22931> (cherry picked from commitc6fd588027)
This commit is contained in:
parent
baba0ca1f6
commit
752c2f6643
2 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@
|
|||
"description": "zink: block more flushes during unordered blits",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "89aa36359328ea48fa29be8dd439dd87043eaa03"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4411,7 +4411,7 @@ zink_copy_image_buffer(struct zink_context *ctx, struct zink_resource *dst, stru
|
|||
if (needs_present_readback)
|
||||
zink_kopper_present_readback(ctx, img);
|
||||
|
||||
if (ctx->oom_flush && !ctx->batch.in_rp)
|
||||
if (ctx->oom_flush && !ctx->batch.in_rp && !ctx->unordered_blitting)
|
||||
flush_batch(ctx, false);
|
||||
}
|
||||
|
||||
|
|
@ -4541,7 +4541,7 @@ zink_resource_copy_region(struct pipe_context *pctx,
|
|||
zink_copy_buffer(ctx, dst, src, dstx, src_box->x, src_box->width);
|
||||
} else
|
||||
zink_copy_image_buffer(ctx, dst, src, dst_level, dstx, dsty, dstz, src_level, src_box, 0);
|
||||
if (ctx->oom_flush && !ctx->batch.in_rp)
|
||||
if (ctx->oom_flush && !ctx->batch.in_rp && !ctx->unordered_blitting)
|
||||
flush_batch(ctx, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue