asahi: Use the batch for submission

So we can submit background batches.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19865>
This commit is contained in:
Alyssa Rosenzweig
2022-11-17 18:31:41 -05:00
committed by Marge Bot
parent 0d3b4ff2aa
commit de1eb9400f

View File

@@ -823,7 +823,7 @@ agx_flush_batch(struct agx_context *ctx, struct agx_batch *batch)
unsigned cmdbuf_size = demo_cmdbuf(dev->cmdbuf.ptr.cpu,
dev->cmdbuf.size,
&batch->pool,
&ctx->framebuffer,
&batch->key,
batch->encoder->ptr.gpu,
encoder_id,
batch->scissor.bo->ptr.gpu,