From 10e528a49557226a5bbcbfd2b1396cd74c6b142e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 7 Dec 2023 13:26:44 -0400 Subject: [PATCH] asahi: fix get_batch with compute batches we'll be able to switch between compute and gfx queues soon, handle that instead of assert failing. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_batch.c b/src/gallium/drivers/asahi/agx_batch.c index 584fc158edb..b769385ec55 100644 --- a/src/gallium/drivers/asahi/agx_batch.c +++ b/src/gallium/drivers/asahi/agx_batch.c @@ -310,7 +310,7 @@ agx_get_batch_for_framebuffer(struct agx_context *ctx, struct agx_batch * agx_get_batch(struct agx_context *ctx) { - if (!ctx->batch) { + if (!ctx->batch || agx_batch_is_compute(ctx->batch)) { ctx->batch = agx_get_batch_for_framebuffer(ctx, &ctx->framebuffer); agx_dirty_all(ctx); }