diff options
author | John Stultz <john.stultz@linaro.org> | 2018-03-29 17:46:51 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2018-07-11 15:59:39 -0700 |
commit | 6b14a3306bb3c760c63fe48467f4e57b06616d82 (patch) | |
tree | ccea0ff013ce1ffb0b8a55cc913eb06710496c5e /gralloc960 | |
parent | f3d868dcbd74d43b754bf168fd5f63bf4c8c4385 (diff) | |
download | hikey-6b14a3306bb3c760c63fe48467f4e57b06616d82.tar.gz |
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 <john.stultz@linaro.org>
Diffstat (limited to 'gralloc960')
-rw-r--r-- | gralloc960/mali_gralloc_buffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |