drm/tests
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
..
amdgpu Conditionally include <linux/limits.h> and <sys/params.h> on Linux, BSD 2021-06-20 14:32:33 +03:00
etnaviv tests/etnaviv_2d_test: check whether the rendering is correct 2020-12-09 16:00:51 +01:00
exynos Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
kms tests: Only copy con->modes[0] if it exists 2020-02-27 12:21:09 +01:00
kmstest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modeprint Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
modetest xf86drm: Add a human readable representation for format modifiers 2021-06-22 11:16:04 +00:00
nouveau tests/nouveau/threaded: adapt ioctl signature for FreeBSD 2020-04-21 19:26:54 +02:00
proptest Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
radeon Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
tegra Revert "Revert "libdrm: remove autotools support"" 2019-10-18 18:05:45 +01:00
ttmtest fix various typos 2019-04-17 18:23:25 +01:00
util Avoid some compiler errors for tests/util/pattern.c 2021-02-10 21:14:47 +00:00
vbltest meson: always define whether headers exist 2020-01-23 17:00:12 +00:00
Android.mk android: simplify the including rule of subdirs 2015-03-20 17:07:21 +00:00
drmdevice.c tests: skip drmdevice test if the machine doesn't have any drm device 2018-11-11 18:39:57 +00:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
meson.build tests: install drmdevice 2020-04-21 18:50:23 +01:00