summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/omx
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-11-25 17:23:33 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-05-19 19:46:54 +0100
commitfdc90e1286ff7cb3a2e533f7e0962b4d39b6d28b (patch)
tree4327efb6ce641b743425fa56e9c90b18cf46b1d5 /src/gallium/state_trackers/omx
parentfcbedce31012ee319d9e083a10bc44120f830e4d (diff)
st/omx: add DRI3 support
Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-and-Tested-by: Leo Liu <leo.liu@amd.com>
Diffstat (limited to 'src/gallium/state_trackers/omx')
-rw-r--r--src/gallium/state_trackers/omx/entrypoint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/omx/entrypoint.c b/src/gallium/state_trackers/omx/entrypoint.c
index fa2074ad1b..251cc7d65d 100644
--- a/src/gallium/state_trackers/omx/entrypoint.c
+++ b/src/gallium/state_trackers/omx/entrypoint.c
@@ -103,7 +103,9 @@ struct vl_screen *omx_get_screen(void)
if (!omx_display)
goto error;
- omx_screen = vl_dri2_screen_create(omx_display, 0);
+ omx_screen = vl_dri3_screen_create(omx_display, 0);
+ if (!omx_screen)
+ omx_screen = vl_dri2_screen_create(omx_display, 0);
if (!omx_screen) {
XCloseDisplay(omx_display);
goto error;