hikey: gralloc: Add element to allow upstream drm_hwc to build w/ HiKey
Upstream drm_hwc merged some changes to support AFBC which is
only supported on HiKey960. In doing so they utilize a hikey960
gralloc private handle field that doesn't exist on HiKey.
Thus this patch adds the internal_format field as a union
element on format. This is a union element so we don't change
the structure size and since internal_format isn't used in
drm_hwc when building with w/ HiKey there is no effect on the
values it aliases.
Change-Id: Ie73706d8f3acfaf3bfa5c187c0365d505da044d2
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/gralloc/gralloc_priv.h b/gralloc/gralloc_priv.h
index 3330eae..14cb07a 100644
--- a/gralloc/gralloc_priv.h
+++ b/gralloc/gralloc_priv.h
@@ -170,6 +170,8 @@
union {
int format;
int req_format; /* same name as gralloc960 */
+ /*unused but referenced in drm_hwc */
+ int internal_format;
};
int stride;
union