mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
zink: just end the current renderpass in zink_batch_no_rp()
since we aren't (currently) parallelizing and now have barriers, we don't need to cycle the batch here, which lets us avoid submitting too-small command buffers Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9148>
This commit is contained in:
parent
f3080eca75
commit
1cb3015a31
1 changed files with 2 additions and 6 deletions
|
|
@ -891,12 +891,8 @@ struct zink_batch *
|
||||||
zink_batch_no_rp(struct zink_context *ctx)
|
zink_batch_no_rp(struct zink_context *ctx)
|
||||||
{
|
{
|
||||||
struct zink_batch *batch = zink_curr_batch(ctx);
|
struct zink_batch *batch = zink_curr_batch(ctx);
|
||||||
if (batch->in_rp) {
|
zink_end_render_pass(ctx, batch);
|
||||||
/* flush batch and get a new one */
|
assert(!batch->in_rp);
|
||||||
flush_batch(ctx);
|
|
||||||
batch = zink_curr_batch(ctx);
|
|
||||||
assert(!batch->in_rp);
|
|
||||||
}
|
|
||||||
return batch;
|
return batch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue