summaryrefslogtreecommitdiff
path: root/drmhwcgralloc.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-10-06 17:20:05 -0500
committerRobert Foss <robert.foss@collabora.com>2017-10-09 14:36:19 +0200
commitaeccd89eaafec467cb9449cce5c64152a240c138 (patch)
tree912540af41097f2f7117ad09d81732b0d0a97e1d /drmhwcgralloc.h
parent89095cc77c719336d4e0774b03447f75bf834c87 (diff)
platformdrmgeneric: get the gralloc usage directly from the handle
There's no point in using a gralloc perform() op to retrieve the usage as it is already stored in the handle like width, height, format, etc. So just copy it to the hwc_drm_bo_t and get it directly. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Robert Foss <robert.foss@collabora.com> Tested-by: Robert Foss <robert.foss@collabora.com>
Diffstat (limited to 'drmhwcgralloc.h')
-rw-r--r--drmhwcgralloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drmhwcgralloc.h b/drmhwcgralloc.h
index 765c897..c4a42ea 100644
--- a/drmhwcgralloc.h
+++ b/drmhwcgralloc.h
@@ -56,6 +56,7 @@ typedef struct hwc_drm_bo {
uint32_t width;
uint32_t height;
uint32_t format; /* DRM_FORMAT_* from drm_fourcc.h */
+ uint32_t usage;
uint32_t pitches[4];
uint32_t offsets[4];
uint32_t gem_handles[4];