summaryrefslogtreecommitdiff
path: root/gbm.c
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-11-02 14:07:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-08 22:21:56 -0800
commit47e629b70ddec014c7691a48509ef437c57761bb (patch)
tree4a5c594f8620b017af0f2c844737a4ab6b6fb0b3 /gbm.c
parent425173a0c8170528f804b2a9bd02b71fa47d754b (diff)
minigbm: refactor and rename mapping struct
Since some drivers (AMDGPU, Tegra) may have to do expensive tiling and detiling operations, we should try to take advantage of the access regions passed in by gralloc and gbm. Let's refactor struct map_data so we can separate the actual mapping and access region. Here is the Coccinelle rule used in this change: @@ struct map_info *M; @@ - (M) + M->vma In addition, struct map_data was also renamed to struct mapping. BUG=chromium:764871 TEST= mmap_test -g on Kevin Change-Id: Idb094aa3b5f81e45ce3a2f4fb2d9bf8fba32bf29 Reviewed-on: https://chromium-review.googlesource.com/758144 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Joe Kniss <djmk@google.com> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'gbm.c')
-rw-r--r--gbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbm.c b/gbm.c
index a78921c..606b195 100644
--- a/gbm.c
+++ b/gbm.c
@@ -232,7 +232,7 @@ PUBLIC void *gbm_bo_map(struct gbm_bo *bo, uint32_t x, uint32_t y, uint32_t widt
*stride = gbm_bo_get_plane_stride(bo, plane);
map_flags = (transfer_flags & GBM_BO_TRANSFER_READ) ? BO_MAP_READ : BO_MAP_NONE;
map_flags |= (transfer_flags & GBM_BO_TRANSFER_WRITE) ? BO_MAP_WRITE : BO_MAP_NONE;
- return drv_bo_map(bo->bo, x, y, width, height, map_flags, (struct map_info **)map_data,
+ return drv_bo_map(bo->bo, x, y, width, height, map_flags, (struct mapping **)map_data,
plane);
}