asahi: Make encoder_allocate public

In order to enqueue CDM and VDM to the same queue.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26056>
This commit is contained in:
Alyssa Rosenzweig
2023-07-23 09:08:36 -04:00
committed by Marge Bot
parent c9dd59fef3
commit 0b96b62348
2 changed files with 4 additions and 1 deletions

View File

@@ -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");

View File

@@ -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,