OSDN Git Service

Plumb buffer map permissions through gbm.
authorJoe Kniss <djmk@google.com>
Thu, 29 Jun 2017 22:02:46 +0000 (15:02 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 11 Jul 2017 17:25:12 +0000 (10:25 -0700)
commit657058557680c8c8ed12e166046b394460199c3d
tree6665cda6a50498563d903588ba6b76307eff4130
parentaff29fdf276d3f565ab16ba88e4386930fb6dd99
Plumb buffer map permissions through gbm.

Map read/write permissions were being ignored by minigbm.  This can
cause segfaults or failed mappings if the device FD permissions are not
rw.

Also adds bounds checking in tegra.c for tile/untile transfers.

BUG=chromium:737328
TEST=cyan, nyan graphicsSanity with read only on device

Change-Id: I8fccaed4e908cda3ff7d7cf451d0ad75d65039e6
Reviewed-on: https://chromium-review.googlesource.com/556980
Commit-Ready: Joe Kniss <djmk@google.com>
Tested-by: Joe Kniss <djmk@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
13 files changed:
amdgpu.c
cros_gralloc/cros_gralloc_buffer.cc
drv.c
drv.h
drv_priv.h
gbm.c
helpers.c
helpers.h
i915.c
mediatek.c
rockchip.c
tegra.c
vc4.c