[Mesa-dev] [PATCH 14/14] st/vdpau: add dri3 support
Leo Liu
leo.liu at amd.com
Wed May 11 15:06:36 UTC 2016
Signed-off-by: Leo Liu <leo.liu at amd.com>
---
src/gallium/state_trackers/vdpau/device.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c
index de7e951..81b7582 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;
--
2.7.4
More information about the mesa-dev
mailing list