diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2017-10-05 14:52:24 -0700 |
---|---|---|
committer | Gurchetan Singh <gurchetansingh@chromium.org> | 2017-10-13 16:17:33 +0000 |
commit | e29a640dd6f26d50e29cabac2611bd97841c2101 (patch) | |
tree | 53ca8bbb8ce359547fe77bbed9b9dd351a5c8c9f /drv.h | |
parent | b57dffc6187a6bf810a36d491f0a0ddeade0d405 (diff) |
minigbm: respect map_flags in all cases
When the map flags do not feature BO_TRANSFER_WRITE, we should
not copy back any shadow buffers we maintain.
BUG=b:67434931
TEST=android.view.cts.SurfaceViewSyncTests on Mediatek/Rockchip
Change-Id: I7078bfc5a8d770a52949d43ea68efc4a870e9227
Reviewed-on: https://chromium-review.googlesource.com/703875
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
Diffstat (limited to 'drv.h')
-rw-r--r-- | drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -82,6 +82,7 @@ struct map_info { void *addr; size_t length; uint32_t handle; + uint32_t map_flags; int32_t refcount; void *priv; }; |