drm/tests
Thierry Reding ab5aaf6c8e drm/tegra: Sanitize format modifiers
The existing format modifier definitions were merged prematurely, and
recent work has unveiled that the definitions are suboptimal in several
ways:

  - The format specifiers, except for one, are not Tegra specific, but
    the names don't reflect that.
  - The number space is split into two, reserving 32 bits for some
    "parameter" which most of the modifiers are not going to have.
  - Symbolic names for the modifiers are not using the standard
    DRM_FORMAT_MOD_* prefix, which makes them awkward to use.
  - The vendor prefix NV is somewhat ambiguous.

Fortunately, nobody's started using these modifiers, so we can still fix
the above issues. Do so by using the standard prefix. Also, remove TEGRA
from the name of those modifiers that exist on NVIDIA GPUs as well. In
case of the block linear modifiers, make the "parameter" smaller (4
bits, though only 6 values are valid) and don't let that leak into any
of the other modifiers.

Finally, also use the more canonical NVIDIA instead of the ambiguous NV
prefix.

This is based on commit 5843f4e02fbe86a59981e35adc6cabebee46fdc0 from
Linux v4.16-rc1 and also updates modetest to use the new defines.

Acked-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-02-19 14:58:57 +01:00
..
amdgpu tests/amdgpu: add bo eviction test 2018-02-08 15:03:47 +08:00
etnaviv tests/etnaviv: drop unused `return 0` 2018-01-29 15:41:52 +00:00
exynos exynos/tests: use #ifdef for never-defined token 2018-01-31 11:22:57 +00:00
kms Add meson build system 2018-01-12 09:40:48 -08:00
kmstest Add meson build system 2018-01-12 09:40:48 -08:00
modeprint remove unnecessary double-semicolon 2018-01-29 15:41:52 +00:00
modetest drm/tegra: Sanitize format modifiers 2018-02-19 14:58:57 +01:00
nouveau Add meson build system 2018-01-12 09:40:48 -08:00
proptest Add meson build system 2018-01-12 09:40:48 -08:00
radeon Add meson build system 2018-01-12 09:40:48 -08:00
tegra Add meson build system 2018-01-12 09:40:48 -08:00
ttmtest Purge macro NEED_REPLIES 2010-07-01 13:12:55 -06:00
util always define HAVE_CAIRO 2018-01-29 15:41:52 +00:00
vbltest Add meson build system 2018-01-12 09:40:48 -08:00
Android.mk android: simplify the including rule of subdirs 2015-03-20 17:07:21 +00:00
Makefile.am tests: automake: reorder makefile contents 2016-12-05 17:24:32 +00:00
drmdevice.c tests/drmdevice: Add USB, platform and host1x support 2017-01-20 16:27:33 +01: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 Add meson build system 2018-01-12 09:40:48 -08:00
random.c tests/random: return non-zero on test failure 2015-04-05 15:33:33 +01:00