asahi: create queue for screen

Signed-off-by: i509VCB <git@i509.me>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26963>
This commit is contained in:
i509VCB 2023-12-30 20:56:38 -06:00 committed by Alyssa Rosenzweig
parent 43fc09a0d8
commit 8f52e72686
3 changed files with 5 additions and 0 deletions

View file

@ -553,6 +553,7 @@ agx_batch_submit(struct agx_context *ctx, struct agx_batch *batch,
void *cmdbuf)
{
struct agx_device *dev = agx_device(ctx->base.screen);
struct agx_screen *screen = agx_screen(ctx->base.screen);
bool feedback = dev->debug & (AGX_DBG_TRACE | AGX_DBG_SYNC | AGX_DBG_STATS);

View file

@ -2188,6 +2188,8 @@ agx_screen_create(int fd, struct renderonly *ro,
return NULL;
}
agx_screen->queue_id = agx_create_command_queue(&agx_screen->dev, 0);
screen->destroy = agx_destroy_screen;
screen->get_screen_fd = agx_screen_get_fd;
screen->get_name = agx_get_name;

View file

@ -725,6 +725,8 @@ struct agx_screen {
struct pipe_screen pscreen;
struct agx_device dev;
struct disk_cache *disk_cache;
/* Queue handle */
uint32_t queue_id;
};
static inline struct agx_screen *