summaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbmint.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-08-16 11:54:11 -0700
committerJason Ekstrand <[email protected]>2017-09-14 14:47:39 -0700
commit8824141b8d48d9120ddbf542d6fb661046c41c62 (patch)
tree1a66a913fabdc536e3bc96c3b0a88684dcef4ff7 /src/gbm/main/gbmint.h
parent0a25a417ce9b9c7e500baeabade87bd1114ac2a8 (diff)
gbm: Add a gbm_device_get_format_modifier_plane_count function
This allows the user to query the number of planes required by a given format+modifier combination without having to create a bo or surface. Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gbm/main/gbmint.h')
-rw-r--r--src/gbm/main/gbmint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h
index c27a7a560ae..9220a4ae87d 100644
--- a/src/gbm/main/gbmint.h
+++ b/src/gbm/main/gbmint.h
@@ -61,6 +61,9 @@ struct gbm_device {
int (*is_format_supported)(struct gbm_device *gbm,
uint32_t format,
uint32_t usage);
+ int (*get_format_modifier_plane_count)(struct gbm_device *device,
+ uint32_t format,
+ uint64_t modifier);
struct gbm_bo *(*bo_create)(struct gbm_device *gbm,
uint32_t width, uint32_t height,