summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2016-04-25 16:07:21 -0400
committerLeo Liu <[email protected]>2016-05-16 16:28:51 -0400
commite8282178ab0fcd0425890c63564e064606ae1bb8 (patch)
treeec94966d0948c085e324e6b86034ffe7cc3ec5b4 /src/gallium
parent8d7ac0a4e4db42190dcf260c1bc91e0b369e4df0 (diff)
st/va: add dri3 support
Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/va/context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 25d587af46f..93ab3d98ec2 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -119,7 +119,11 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
return VA_STATUS_ERROR_UNIMPLEMENTED;
case VA_DISPLAY_GLX:
case VA_DISPLAY_X11:
- drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen);
+#if defined(HAVE_DRI3)
+ drv->vscreen = vl_dri3_screen_create(ctx->native_dpy, ctx->x11_screen);
+#endif
+ if (!drv->vscreen)
+ drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen);
if (!drv->vscreen)
goto error_screen;
break;