[Mesa-dev] [PATCH 19/28] st/omx: add DRI3 support
Emil Velikov
emil.l.velikov at gmail.com
Thu Dec 8 20:00:08 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
UNTESTED.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
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 f68ede5..bf63520 100644
--- a/src/gallium/state_trackers/omx/entrypoint.c
+++ b/src/gallium/state_trackers/omx/entrypoint.c
@@ -107,7 +107,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.10.2
More information about the mesa-dev
mailing list