mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +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> (cherry picked from commit2034c901cc)
This commit is contained in:
parent
e09a2e808f
commit
09da8e124f
2 changed files with 7 additions and 1 deletions
|
|
@ -1524,7 +1524,7 @@
|
|||
"description": "llvmpipe: Free dummy_dmabuf on shutdown",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "d21aa86b5471a6d5943d6bf5c4c1768128d25ad4",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -836,6 +836,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