From 0b96b62348fa77e385b6e87d6be3a1fb5d4cfd55 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 23 Jul 2023 09:08:36 -0400 Subject: [PATCH] asahi: Make encoder_allocate public In order to enqueue CDM and VDM to the same queue. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_batch.c | 2 +- src/gallium/drivers/asahi/agx_state.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_batch.c b/src/gallium/drivers/asahi/agx_batch.c index c4ddffca87d..933cf914198 100644 --- a/src/gallium/drivers/asahi/agx_batch.c +++ b/src/gallium/drivers/asahi/agx_batch.c @@ -76,7 +76,7 @@ agx_batch_mark_complete(struct agx_batch *batch) BITSET_CLEAR(batch->ctx->batches.submitted, batch_idx); } -static struct agx_encoder +struct agx_encoder agx_encoder_allocate(struct agx_batch *batch, struct agx_device *dev) { struct agx_bo *bo = agx_bo_create(dev, 0x80000, 0, "Encoder"); diff --git a/src/gallium/drivers/asahi/agx_state.h b/src/gallium/drivers/asahi/agx_state.h index eb6748073dc..e765c6b8e6c 100644 --- a/src/gallium/drivers/asahi/agx_state.h +++ b/src/gallium/drivers/asahi/agx_state.h @@ -876,6 +876,9 @@ void agx_blit(struct pipe_context *pipe, const struct pipe_blit_info *info); /* Batch logic */ +struct agx_encoder agx_encoder_allocate(struct agx_batch *batch, + struct agx_device *dev); + void agx_batch_init_state(struct agx_batch *batch); uint64_t agx_build_meta(struct agx_batch *batch, bool store,