clover/format: Full rework on how we declare supported images.
authorKarol Herbst <kherbst@redhat.com>
Wed, 21 Oct 2020 01:40:48 +0000 (03:40 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Oct 2021 20:55:22 +0000 (06:55 +1000)
commitf09e6c1c5fcdfa0e16d09b30cc5deb1a4fedd728
tree160defe8e3dd631c2f155a90a3ab69bfd6328574
parentbe6d584de43966ee58bf1fcac156ebf8040081d1
clover/format: Full rework on how we declare supported images.

While at it also remove CL_LUMINANCE and CL_INTENSITY, which are optional
but also quite broken.

Also advertize all formats we can already support and make the list easier
to read. Also adds support for newer formats.

v2: fixup packing for non-8 bits (airlied)

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13424>
src/gallium/frontends/clover/core/format.cpp