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>
This commit is contained in:
parent
fcbedce310
commit
fdc90e1286
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue