From cfe08808de500bce77a89c6a0ee401a24d592b16 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 1 Jan 2025 11:58:16 +0100 Subject: [PATCH] radeonsi/vcn: Use compute only context We don't need graphics. Reviewed-by: Leo Liu Part-of: --- src/gallium/drivers/radeonsi/radeon_vcn_dec.c | 2 +- src/gallium/drivers/radeonsi/radeon_vcn_enc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c index a4948730b30..9c42b654d84 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c @@ -2724,7 +2724,7 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context, return NULL; if (sctx->vcn_has_ctx) { - dec->ectx = pipe_create_multimedia_context(context->screen); + dec->ectx = context->screen->context_create(context->screen, NULL, PIPE_CONTEXT_COMPUTE_ONLY); if (!dec->ectx) sctx->vcn_has_ctx = false; } diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_enc.c b/src/gallium/drivers/radeonsi/radeon_vcn_enc.c index 5c850c402d6..e58ab6810a1 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_enc.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_enc.c @@ -1963,7 +1963,7 @@ struct pipe_video_codec *radeon_create_encoder(struct pipe_context *context, return NULL; if (sctx->vcn_has_ctx) { - enc->ectx = pipe_create_multimedia_context(context->screen); + enc->ectx = context->screen->context_create(context->screen, NULL, PIPE_CONTEXT_COMPUTE_ONLY); if (!enc->ectx) sctx->vcn_has_ctx = false; }