radeonsi/vcn: Use compute only context
We don't need graphics. Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32794>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user