OSDN Git Service

minigbm: refactor and rename mapping struct
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 2 Nov 2017 21:07:18 +0000 (14:07 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 9 Nov 2017 06:21:56 +0000 (22:21 -0800)
commit47e629b70ddec014c7691a48509ef437c57761bb
tree4a5c594f8620b017af0f2c844737a4ab6b6fb0b3
parent425173a0c8170528f804b2a9bd02b71fa47d754b
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>
14 files changed:
amdgpu.c
cros_gralloc/cros_gralloc_buffer.cc
cros_gralloc/cros_gralloc_buffer.h
drv.c
drv.h
drv_priv.h
gbm.c
helpers.c
helpers.h
i915.c
mediatek.c
rockchip.c
tegra.c
vc4.c