aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-02-07 00:13:44 -0500
committerMarek Olšák <[email protected]>2019-07-29 17:52:41 -0400
commit187cc07d0561311114fc4b3e1fc9951ff311735b (patch)
tree4a7357722ab8f0587080846d094b59a04a70664d /src/gallium/state_trackers/va/context.c
parentea7646dc13306e96188e7a7fd76e8a926bede13d (diff)
gallium: create multimedia contexts as compute-only if graphics is unsupported
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r--src/gallium/state_trackers/va/context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 9176b7e8c5d..2cb3a6c9268 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -151,8 +151,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
if (!drv->vscreen)
goto error_screen;
- drv->pipe = drv->vscreen->pscreen->context_create(drv->vscreen->pscreen,
- NULL, 0);
+ drv->pipe = pipe_create_multimedia_context(drv->vscreen->pscreen);
if (!drv->pipe)
goto error_pipe;