mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 01:50:12 +01:00
vc4: Don't forget to unmap the GEM BO when freeing.
Otherwise it'll stick around forever.
This commit is contained in:
parent
d2cc7f97df
commit
cdc208bdaf
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue