st/xvmc: add DRI3 support
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
fdc90e1286
commit
912f24fd32
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue