gbm: Add a gbm_device_get_format_modifier_plane_count function
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Aug 2017 18:54:11 +0000 (11:54 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Sep 2017 21:47:39 +0000 (14:47 -0700)
commit8824141b8d48d9120ddbf542d6fb661046c41c62
tree1a66a913fabdc536e3bc96c3b0a88684dcef4ff7
parent0a25a417ce9b9c7e500baeabade87bd1114ac2a8
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 <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/gbm/backends/dri/gbm_dri.c
src/gbm/main/gbm.c
src/gbm/main/gbm.h
src/gbm/main/gbmint.h