mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
llvmpipe: Free dummy_dmabuf on shutdown
In order to stop ASAN from complaining.
Fixes: d21aa86b54 ("llvmpipe: Implement EGL_ANDROID_native_fence_sync")
Signed-off-by: Robert Mader <robert.mader@collabora.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34258>
This commit is contained in:
parent
737d66379d
commit
2034c901cc
1 changed files with 6 additions and 0 deletions
|
|
@ -743,6 +743,12 @@ llvmpipe_destroy_screen(struct pipe_screen *_screen)
|
|||
#if defined(HAVE_LIBDRM) && defined(HAVE_LINUX_UDMABUF_H)
|
||||
if (screen->udmabuf_fd != -1)
|
||||
close(screen->udmabuf_fd);
|
||||
if (screen->dummy_sync_fd != -1)
|
||||
close(screen->dummy_sync_fd);
|
||||
if (screen->dummy_dmabuf) {
|
||||
_screen->free_memory_fd(_screen,
|
||||
(struct pipe_memory_allocation*)screen->dummy_dmabuf);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if DETECT_OS_LINUX
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue