summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-08-03 18:23:27 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-05 22:07:49 -0700
commit18578eda90ee2b4a46aca5e8fc9c8b9cd4367a12 (patch)
treeb1397884787b9dc0e3206d29f87f785085510bed /drv_priv.h
parent3f25951570d82dc940f63cae34b48d13490c55c0 (diff)
minigbm: store BO_USE_* flags in buffer object
Currently, minigbm only cares about the buffer use flags during buffer creation. We would like to use cached renderscript buffers, so we need knowledge about how the buffer was created at map time. Let's add this to the buffer object struct. BUG=b:38097499 TEST=run cts -m CtsViewTestCases -t android.view.cts.SurfaceViewSyncTests passes on 9776.0.0 veyron_minnie Change-Id: I73943dae309e60038affb78385aef4b6d3b678ed Reviewed-on: https://chromium-review.googlesource.com/602734 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 3ecdc58..13032e5 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];
+ uint64_t flags;
size_t total_size;
void *priv;
};