panfrost: Fix format definitions to match gallium expectations
Gallium wants the depth or stencil component replicated on all .XYZW. That's easily done on pre-v7 since we can forge all the swizzles we want, but Bifrost v7 only supports a few combinations, so we have to combine the user swizzle with our own 'replicate' swizzle to make it work. Note that v7 has a trick to make border color work when the GRBA order is chosen: they apply the red border color to the green component. Signed-off-by:Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by:
Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <mesa/mesa!10612>
- src/gallium/drivers/panfrost/ci/deqp-panfrost-g52-fails.txt 0 additions, 31 deletionssrc/gallium/drivers/panfrost/ci/deqp-panfrost-g52-fails.txt
- src/panfrost/lib/pan_format.c 12 additions, 11 deletionssrc/panfrost/lib/pan_format.c
- src/panfrost/lib/pan_texture.c 19 additions, 1 deletionsrc/panfrost/lib/pan_texture.c