OSDN Git Service

minigbm: More sophisticated gbm_bo_map/gbm_bo_unmap
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 6 Oct 2016 17:58:00 +0000 (10:58 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 13 Oct 2016 11:32:23 +0000 (04:32 -0700)
commit1a31e609770088ad0e5abb49678174e4c6393d34
tree10cc530d21282f1e6381b661ad567a7f3b62b49c
parent602bd16a60a01ebb0ce911712256047df18acaa5
minigbm: More sophisticated gbm_bo_map/gbm_bo_unmap

We previously added the gbm_bo_map/gbm_bo_unmap (see CL:393927)
entry points since we wanted to do driver-specific detiling during
screenshot capture tests.  We ignored most the parameters and mapped
the entire buffer.  This CL adds the ability to:

1) Return the starting address within a byte given a specific x, y
   in the buffer.

2) Handle the case where there are more than one kernel buffers
   per buffer object.  Currently, only the Exynos driver would use
   this capability.

BUG=chromium:653284
TEST=Ran cros_gralloc with modified code

CQ-DEPEND=CL:393927

Change-Id: I19d75d2f16489c0184e96305fb643f18477e1cdb
Reviewed-on: https://chromium-review.googlesource.com/395066
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drv.c
drv.h
drv_priv.h
gbm.c
helpers.c
helpers.h
i915.c
mediatek.c
rockchip.c
tegra.c