diff options
author | Emil Velikov <[email protected]> | 2015-11-06 22:45:38 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-11-20 10:58:44 +0000 |
commit | 9eb109f4d3b3b145c544eb69ac21cb69e0a5e2be (patch) | |
tree | f596c6eb83999a5ee08ee3692dff11c50b892ee3 /src/gallium/state_trackers/omx/entrypoint.c | |
parent | 32094979f70a5f532eb27eb41df4a0eadd2fd1a1 (diff) |
st/omx: use the vl_screen dispatch
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/omx/entrypoint.c')
-rw-r--r-- | src/gallium/state_trackers/omx/entrypoint.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/omx/entrypoint.c b/src/gallium/state_trackers/omx/entrypoint.c index dd72b296de2..da9ca104d93 100644 --- a/src/gallium/state_trackers/omx/entrypoint.c +++ b/src/gallium/state_trackers/omx/entrypoint.c @@ -119,14 +119,13 @@ void omx_put_screen(void) { pipe_mutex_lock(omx_lock); if ((--omx_usecount) == 0) { - if (omx_render_node) { - vl_drm_screen_destroy(omx_screen); + omx_screen->destroy(omx_screen); + omx_screen = NULL; + + if (omx_render_node) close(drm_fd); - } else { - vl_screen_destroy(omx_screen); + else XCloseDisplay(omx_display); - } - omx_screen = NULL; } pipe_mutex_unlock(omx_lock); } |