mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 09:20:12 +01:00
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:
parent
3a9b1baa80
commit
cfe08808de
2 changed files with 2 additions and 2 deletions
|
|
@ -2724,7 +2724,7 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (sctx->vcn_has_ctx) {
|
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)
|
if (!dec->ectx)
|
||||||
sctx->vcn_has_ctx = false;
|
sctx->vcn_has_ctx = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1963,7 +1963,7 @@ struct pipe_video_codec *radeon_create_encoder(struct pipe_context *context,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (sctx->vcn_has_ctx) {
|
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)
|
if (!enc->ectx)
|
||||||
sctx->vcn_has_ctx = false;
|
sctx->vcn_has_ctx = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue