No description
Find a file
Gurchetan Singh 47e629b70d 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>
2017-11-08 22:21:56 -08:00
cros_gralloc minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
Android.gralloc.mk minigbm: cros_gralloc: refactor for future HALs 2017-06-28 21:50:52 -07:00
Android.mk minigbm: cros_gralloc: refactor for future HALs 2017-06-28 21:50:52 -07:00
common.mk minigbm: Remove (c) from copyright notice. 2016-12-17 19:33:05 -08:00
drv.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
drv.h minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
drv_priv.h minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
evdi.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
exynos.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
gbm.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
gbm.h minigbm: i915: Allow protected allocations 2017-10-19 12:56:48 -07:00
gbm.pc rename pc file from libgbm.pc to gbm.pc to match mesa 2014-11-12 03:54:03 +00:00
gbm_helpers.c minigbm: i915: Allow protected allocations 2017-10-19 12:56:48 -07:00
gbm_helpers.h minigbm: standardize naming of buffer creation flags 2017-10-02 17:27:17 -07:00
gbm_priv.h minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
gma500.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
helpers.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
helpers.h minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
i915.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
LICENSE minigbm: Add a LICENSE file 2017-04-21 21:57:32 -07:00
Makefile Added radeon backend for minigbm 2017-08-04 02:35:55 -07:00
marvell.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
mediatek.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
nouveau.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
PRESUBMIT.cfg minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
presubmit.sh minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
radeon.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
rockchip.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
tegra.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
udl.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
util.h minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
vc4.c minigbm: refactor and rename mapping struct 2017-11-08 22:21:56 -08:00
vgem.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00
virtio_gpu.c minigbm: re-const-ify driver backends 2017-11-08 15:10:09 -08:00