summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2016-04-26 11:23:53 -0400
committerLeo Liu <[email protected]>2016-05-16 16:28:51 -0400
commit5e2072c711c13244987878117a834ae60ccb4413 (patch)
tree7b2d87e9c95694e45781fe64b8f03a5759b1dc69 /src
parentc122c74dca751deb7186b29f3504a3d5fc2a7ea1 (diff)
st/vdpau: 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')
-rw-r--r--src/gallium/state_trackers/vdpau/device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c
index de7e951a46a..81b75827f34 100644
--- a/src/gallium/state_trackers/vdpau/device.c
+++ b/src/gallium/state_trackers/vdpau/device.c
@@ -63,7 +63,11 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
pipe_reference_init(&dev->reference, 1);
- dev->vscreen = vl_dri2_screen_create(display, screen);
+#if defined(HAVE_DRI3)
+ dev->vscreen = vl_dri3_screen_create(display, screen);
+#endif
+ if (!dev->vscreen)
+ dev->vscreen = vl_dri2_screen_create(display, screen);
if (!dev->vscreen) {
ret = VDP_STATUS_RESOURCES;
goto no_vscreen;