From: Emil Velikov <[email protected]>
Cc: Ilia Mirkin <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
---
UNTESTED.
Ilia, can you give this a try?
---
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 e9014c8bf53..c239b3ddd6b 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.12.2
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev