summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2016-08-29 19:51:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-02 21:16:59 -0700
commita40ca9e44611b763646795427100e183443dcf33 (patch)
treeb0c78d41d7cd095d588eba832f1cd11787b1b4c1 /drv_priv.h
parent42cc6d6c2a93f585daad4c70398edfd770578683 (diff)
minigbm: Map and unmap correct size
We were not mapping the entire buffer for multi-plane buffer objects. BUG=chromium:616275 TEST=NONE CQ-DEPEND=CL:377884 Change-Id: Ia64a6eb45310abeaed3f376479a6738ccd09f0bf Reviewed-on: https://chromium-review.googlesource.com/377841 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv_priv.h')
-rw-r--r--drv_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drv_priv.h b/drv_priv.h
index 129d2ed..53b8da6 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -26,6 +26,7 @@ struct bo
uint32_t sizes[DRV_MAX_PLANES];
uint32_t strides[DRV_MAX_PLANES];
uint64_t format_modifiers[DRV_MAX_PLANES];
+ size_t total_size;
void *priv;
void *map_data;
};