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; }