v3dv: add the unswizzled RGBA4444 format
authorCharlie <charlie@daft.games>
Fri, 11 Jun 2021 18:54:50 +0000 (19:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Jun 2021 11:33:06 +0000 (11:33 +0000)
If we're supporting the R/B swapped one we might as well support the one that
isn't.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11336>

src/broadcom/vulkan/v3dv_formats.c

index 43ba8b9..a1ca89a 100644 (file)
@@ -123,6 +123,7 @@ static const struct v3dv_format format_table[] = {
    FORMAT(R32_UINT,                R32UI,        R32UI,         SWIZ_X001, 32, false),
 
    /* Color, packed */
+   FORMAT(R4G4B4A4_UNORM_PACK16,   ABGR4444,     RGBA4,         SWIZ_XYZW, 16, true),
    FORMAT(B4G4R4A4_UNORM_PACK16,   ABGR4444,     RGBA4,         SWIZ_ZYXW, 16, true), /* Swap RB */
    FORMAT(R5G6B5_UNORM_PACK16,     BGR565,       RGB565,        SWIZ_XYZ1, 16, true),
    FORMAT(R5G5B5A1_UNORM_PACK16,   ABGR1555,     RGB5_A1,       SWIZ_XYZW, 16, true),