projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2cc7f9
)
vc4: Don't forget to unmap the GEM BO when freeing.
author
Eric Anholt
<eric@anholt.net>
Mon, 4 Aug 2014 20:00:56 +0000
(13:00 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 11 Aug 2014 21:45:32 +0000
(14:45 -0700)
Otherwise it'll stick around forever.
src/gallium/drivers/vc4/vc4_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_bufmgr.c
b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 653787e1905c9c237df557c3b7f7fa18495ab332..581ba89fd07f12494ac606157b941c910d4ba58c 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/
src/gallium/drivers/vc4/vc4_bufmgr.c
@@
-75,6
+75,9
@@
vc4_bo_free(struct vc4_bo *bo)
#ifndef USE_VC4_SIMULATOR
struct vc4_screen *screen = bo->screen;
+ if (bo->map)
+ munmap(bo->map, bo->size);
+
struct drm_gem_close c;
c.handle = bo->handle;
int ret = drmIoctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &c);