From 6b14a3306bb3c760c63fe48467f4e57b06616d82 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Thu, 29 Mar 2018 17:46:51 -0700 Subject: hikey960: gralloc960: Add usage field to map to older code The r9p0 gralloc changed the names of usage field, so add a compatibility union so it will work with the platformhisi buffer importer in drm_hwcomposer Change-Id: I75d6df4a81916a5cdf51cfed3750c7dceeedc03e Signed-off-by: John Stultz --- gralloc960/mali_gralloc_buffer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gralloc960') diff --git a/gralloc960/mali_gralloc_buffer.h b/gralloc960/mali_gralloc_buffer.h index 96880bec..7e1c8366 100644 --- a/gralloc960/mali_gralloc_buffer.h +++ b/gralloc960/mali_gralloc_buffer.h @@ -116,7 +116,10 @@ struct private_handle_t void *base; uint64_t padding; }; - uint64_t consumer_usage; + union { + uint64_t consumer_usage; + uint64_t usage; + }; uint64_t producer_usage; uint64_t backing_store_id; int backing_store_size; -- cgit v1.2.3