[Mesa-dev] [PATCH v2 20/27] st/omx: add DRI3 support
Emil Velikov
emil.l.velikov at gmail.com
Thu May 4 16:33:11 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
Cc: Christian König <christian.koenig at amd.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
UNTESTED.
---
src/gallium/state_trackers/omx/entrypoint.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/omx/entrypoint.c b/src/gallium/state_trackers/omx/entrypoint.c
index fa2074ad1b7..251cc7d65d5 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;
--
2.12.2
More information about the mesa-dev
mailing list