st/omx: add DRI3 support
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 25 Nov 2016 17:23:33 +0000 (17:23 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 19 May 2017 18:46:54 +0000 (19:46 +0100)
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>
src/gallium/state_trackers/omx/entrypoint.c

index fa2074ad1b77121d8151b223e444929dc404e9a0..251cc7d65d52fba8cf38c8f7e7e494dc470016bb 100644 (file)
@@ -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;