mesa/include
Thierry Reding 75bf489628 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 268892cb63a822315921a8dab48ac3e4abf7dd03 from
Linux v4.16-rc1.

Acked-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-03-09 11:44:35 +01:00
..
c11 threads,configure.ac,meson.build: define and use HAVE_TIMESPEC_GET 2017-11-16 06:45:35 +01:00
CL clover: Update OpenCL headers to version 1.2 from Khronos. 2014-04-29 13:01:10 +02:00
D3D9 Introduce .editorconfig 2016-08-31 17:06:54 -07:00
d3dadapter d3dadapter/present: Add precision for WaitBufferReleased 2016-12-20 23:44:21 +01:00
drm-uapi drm/tegra: Sanitize format modifiers 2018-03-09 11:44:35 +01:00
EGL eglmesaext: add forward declaration for struct wl_buffers 2017-10-13 12:56:12 +01:00
GL mesa: add xbgr support adjacent to xrgb 2018-02-19 22:33:58 -05:00
GLES gles: Restore some lost typedefs 2017-08-01 18:26:15 +01:00
GLES2 include: Add GL_MESA_program_binary_formats to GL/GLES2 ext.h files 2017-12-08 16:44:35 +11:00
GLES3 Update Khronos-supplied headers 2017-06-30 15:29:50 +02:00
HaikuGL include/haiku: fix comment typo 2014-08-28 21:41:29 -04:00
KHR egl: Update headers from Khronos 2017-08-11 11:16:00 +01:00
pci_ids intel: Add Coffee Lake brand strings 2018-02-08 10:26:34 -08:00
vulkan vulkan: Update the XML and headers to 1.1.70 2018-03-07 12:13:47 -08:00
c99_alloca.h c99_alloca.h: Also use <alloca.h> for cygwin 2015-03-07 18:18:32 +00:00
c99_compat.h util: fix NORETURN for msvc, add HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h 2018-01-12 02:52:10 +01:00
c99_math.h math: Import isinf and others to global namespace 2016-04-18 11:10:25 +01:00
meson.build meson: install vulkan_intel.h header 2018-03-02 11:11:20 -08:00
no_extern_c.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00