xf86drm: add iterator API for DRM/KMS IN_FORMATS blobs
Loading
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The migration is almost done, at least the rest should happen in the background. There are still a few technical difference between the old cluster and the new ones, and they are summarized in this issue. Please pay attention to the TL:DR at the end of the comment.
Add support for parsing and traversing IN_FORMATS property blobs. Providing libdrm with this functionality improves consistency and decreases duplication on the client side.
drmModeFormatModifierBlobIterNext() allows the caller to view formats and associated modifiers given a valid property blob. An example is available inside the libdrm unit test, modetest.c.
Signed-off-by: Luigi Santivetti luigi.santivetti@imgtec.com