OSDN Git Service

minigbm: quick and dirty implementation of gbm_bo_map/gbm_bo_unmap
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 5 Oct 2016 22:16:22 +0000 (15:16 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 7 Oct 2016 06:32:58 +0000 (23:32 -0700)
commit5753c3129a21eb7c0c2f0bd8113cd6b01b8cf651
treed09f45a545183856c5170985d04cf33c85019b8e
parent0337d9b380d91959ae5a34de9c954babee11b650
minigbm: quick and dirty implementation of gbm_bo_map/gbm_bo_unmap

We want to add gbm_bo_map/gbm_bo_unmap entry points so certain tests
and Chrome can use driver specific map logic.  This is based on the
upstream entry points in Mesa, with the addition of a plane parameter.

Currently, we just map the entire buffer and don't attempt to do partial
mappings or use the map flags.  We should do this in the future...

BUG=chromium:653284
TEST=minigbm builds

Change-Id: I0423c10c55bab8fac6d6d7c6a699ab71b43aa61b
Reviewed-on: https://chromium-review.googlesource.com/393927
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
gbm.c
gbm.h