diff options
author | Emil Velikov <[email protected]> | 2016-11-25 17:23:33 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-19 19:46:54 +0100 |
commit | fdc90e1286ff7cb3a2e533f7e0962b4d39b6d28b (patch) | |
tree | 4327efb6ce641b743425fa56e9c90b18cf46b1d5 /src/gallium/state_trackers/omx | |
parent | fcbedce31012ee319d9e083a10bc44120f830e4d (diff) |
st/omx: add DRI3 support
Cc: Christian König <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-and-Tested-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/omx')
-rw-r--r-- | src/gallium/state_trackers/omx/entrypoint.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |