diff options
author | Emil Velikov <[email protected]> | 2016-11-25 17:43:00 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-19 19:46:54 +0100 |
commit | 912f24fd32f0e1e8731d9ae9afb916b076b93369 (patch) | |
tree | fa712a0dbe89da6cdd139fd06f1d7133cb52e2dc | |
parent | fdc90e1286ff7cb3a2e533f7e0962b4d39b6d28b (diff) |
st/xvmc: add DRI3 support
Signed-off-by: Emil Velikov <[email protected]>
Tested-by: Ilia Mirkin <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/xvmc/context.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |