xf86drm: add iterator API for DRM/KMS IN_FORMATS blobs
authorLuigi Santivetti <luigi.santivetti@imgtec.com>
Thu, 25 Mar 2021 22:42:38 +0000 (22:42 +0000)
committerSimon Ser <contact@emersion.fr>
Mon, 8 Nov 2021 16:20:04 +0000 (16:20 +0000)
commite641e2a632d779f638ac2ba983b9fceb20b3fac4
treeb22964ff5fc7af84938fcfb1184c41459df64e3b
parentf256bb9afdcf5b677d0ac3853e45bc97fc2956d4
xf86drm: add iterator API for DRM/KMS IN_FORMATS blobs

Add support for parsing IN_FORMATS property blobs. Providing libdrm
with this functionality helps to standardise how user-space reads
kernel blobs 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>
Reviewed-by: Simon Ser <contact@emersion.fr>
core-symbols.txt
tests/modetest/modetest.c
xf86drmMode.c
xf86drmMode.h