From: Leo Liu Date: Tue, 26 Apr 2016 15:23:53 +0000 (-0400) Subject: st/vdpau: add dri3 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e2072c711c13244987878117a834ae60ccb4413;p=mesa.git st/vdpau: add dri3 support Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König --- 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;