From fdc90e1286ff7cb3a2e533f7e0962b4d39b6d28b Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 25 Nov 2016 17:23:33 +0000 Subject: st/omx: add DRI3 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Christian König Signed-off-by: Emil Velikov Reviewed-and-Tested-by: Leo Liu --- src/gallium/state_trackers/omx/entrypoint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/omx') 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; -- cgit v1.2.3