nil/format: Depth/stencil formats appear as red
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:56 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:58 +0000 (21:31 +0000)
commit89591214a3ed3dd17285107d274a24782729cc17
tree30aaa371f009b3c595a8f294bbd626c256b28667
parentfe84f07fcedf0c553f017bd38e4b6736eec7a18e
nil/format: Depth/stencil formats appear as red

Previously, it was treated as luminance and the depth or stencil
component was broadcast to all channels except alpha.  In Vulkan, depth
and stencil textures are treated as red.  If we want it treated
differntly by some other API, that driver can do that with a swizzle.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/nil/nil_format.c