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:
committed by
Marge Bot
parent
f3080eca75
commit
1cb3015a31
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user