From e89a715f4af99918745922dc8977ab3f6d17f35c Mon Sep 17 00:00:00 2001 From: Rebecca Mckeever Date: Fri, 9 Dec 2022 15:06:27 -0600 Subject: [PATCH] nvk: Add A4B4G4R4 formats to nil_format_info table The nil_format_info table contains the following lines, which add A4R4G4B4 formats. C4(A, B4G4R4A4_UNORM, NONE, B, G, R, A, UNORM, A4B4G4R4, T), F3(A, B4G4R4X4_UNORM, NONE, B, G, R, x, UNORM, A4B4G4R4, T), Add similar lines to the nil_format_info table for A4B4G4R4 formats. Signed-off-by: Rebecca Mckeever Part-of: --- src/nouveau/nil/nil_format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nouveau/nil/nil_format.c b/src/nouveau/nil/nil_format.c index 8f0f9d10711..82c1ce4870a 100644 --- a/src/nouveau/nil/nil_format.c +++ b/src/nouveau/nil/nil_format.c @@ -134,6 +134,8 @@ static const struct nil_format_info nil_format_infos[PIPE_FORMAT_COUNT] = C4(A, A4R4G4B4_UNORM, NONE, G, B, A, R, UNORM, A4B4G4R4, T), C4(A, B4G4R4A4_UNORM, NONE, B, G, R, A, UNORM, A4B4G4R4, T), F3(A, B4G4R4X4_UNORM, NONE, B, G, R, x, UNORM, A4B4G4R4, T), + C4(A, R4G4B4A4_UNORM, NONE, R, G, B, A, UNORM, A4B4G4R4, T), + F3(A, R4G4B4X4_UNORM, NONE, R, G, B, x, UNORM, A4B4G4R4, T), F3(A, R9G9B9E5_FLOAT, NONE, R, G, B, xx, FLOAT, E5B9G9R9_SHAREDEXP, T),