[Mesa-dev] [PATCH 20/28] st/xvmc: add DRI3 support
Emil Velikov
emil.l.velikov at gmail.com
Thu Dec 8 20:00:09 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
UNTESTED.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/gallium/state_trackers/xvmc/context.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/xvmc/context.c b/src/gallium/state_trackers/xvmc/context.c
index e9014c8..c239b3d 100644
--- a/src/gallium/state_trackers/xvmc/context.c
+++ b/src/gallium/state_trackers/xvmc/context.c
@@ -229,7 +229,9 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
return BadAlloc;
/* TODO: Reuse screen if process creates another context */
- vscreen = vl_dri2_screen_create(dpy, scrn);
+ vscreen = vl_dri3_screen_create(dpy, scrn);
+ if (!vscreen)
+ vscreen = vl_dri2_screen_create(dpy, scrn);
if (!vscreen) {
XVMC_MSG(XVMC_ERR, "[XvMC] Could not create VL screen.\n");
--
2.10.2
More information about the mesa-dev
mailing list