drm/tests/modetest
Marius Vlad 67e911977f xf86drm: Add a human readable representation for format modifiers
Introduces two new methods to retrieve a human readable representation of a
format modifier:

drmGetFormatModifierName() - returns a format modifier as a string,
from a token modifier
drmGetFormatModifierVendor() - returns the vendor as a string, from a
token modifier

and the fourcc_mod_get_vendor macro that returns the vendor.

New format modifiers added in drm_fourcc.h uapi kernel header should be
sync'ed up with libdrm and should include a human readable
representation for that format modifier, in order to display it
correctly as a string.

That happens with the help of a python script that reads up drm_fourcc
header file and outputs a static table comprised of token modifiers
alongside a vendor table (Suggested-by Simon Ser <contact@emersion.fr>).

The reason for doing it in libdrm is to have a unified place instead of each
user of libdrm having a way to keep track of the format modifiers.

With this patch, modetest has also been modified to make use of it.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2021-06-22 11:16:04 +00:00
..
Android.mk android: introduce Android.common.mk to reduce boilerplate 2017-01-27 15:48:16 +00:00
Makefile.sources modetest: move sources lists to makefiles.sources 2014-09-28 17:09:34 +01:00
buffers.c modetest: add FP16 format support 2019-06-22 13:34:36 -04:00
buffers.h tests: Split helpers into library 2015-12-18 17:43:40 +00:00
cursor.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
cursor.h modetest: add cursor support 2014-04-22 11:14:12 -04:00
meson.build meson: make symbols hidden by default 2018-09-19 22:46:45 -07:00
modetest.c xf86drm: Add a human readable representation for format modifiers 2021-06-22 11:16:04 +00:00