summaryrefslogtreecommitdiff
path: root/amdgpu.c
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-09-18 15:29:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-26 20:43:59 -0700
commitba6bd503a8ac4da5b3f909ded71a3d60451fb372 (patch)
tree6a93db93c55d0c488b14df3cf0cb6951873bd18b /amdgpu.c
parent55525f5735014943e8e2e170ef1ed16bfe4956fe (diff)
minigbm: add a default (*bo_unmap) implementation
The (*bo_unmap) function is responsible for unmapping the buffer and cleaning up any data allocated during (*bo_map). Previously, we called munmap in drv_bo_unmap(), which caused some confusion. This method is cleaner. BUG=chromium:764871 TEST=emerge-betty minigbm Change-Id: I4dc20cd6b15e79bce21d33f03ebc84480c582981 Reviewed-on: https://chromium-review.googlesource.com/671693 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Joe Kniss <djmk@google.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Diffstat (limited to 'amdgpu.c')
-rw-r--r--amdgpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/amdgpu.c b/amdgpu.c
index ff1336d..da11081 100644
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -436,6 +436,7 @@ struct backend backend_amdgpu = {
.bo_destroy = drv_gem_bo_destroy,
.bo_import = drv_prime_bo_import,
.bo_map = amdgpu_bo_map,
+ .bo_unmap = drv_bo_munmap,
.resolve_format = amdgpu_resolve_format,
};