mesa: Add R8G8_R8B8 and G8R8_B8R8 formats
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 13 Mar 2021 07:01:15 +0000 (23:01 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 May 2021 01:40:22 +0000 (01:40 +0000)
commit53fc6ba9302ed62401b64962adcb1c157817b518
treee028fbf163d37bcfa2a0e9663d1c3ac163d62ce4
parent3fa16b3025a38ee6614725d89e8cda500988d086
mesa: Add R8G8_R8B8 and G8R8_B8R8 formats

These aren't real formats.  They cannot be used with
RenderbufferObjects, Textures, or anything else visible through the GL
API.  The only purpose is to support YUYV textures imported through
EGL_image_external.  There is hardware that can sample from this
subsampled format, but the hardware does not do the colorspace
conversion automatically.

v2: Treat these formats as compressed.  This is a lie, but it seems to
be a less egregious lie than what I was doing before.  It also passes
'ninja test'.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>
src/mesa/main/format_info.py
src/mesa/main/format_parser.py
src/mesa/main/formats.c
src/mesa/main/formats.csv
src/mesa/main/formats.h