nil: Add A4B4G4R4_UNORM format support

DXVK versions before v1.5.5 need this format in some cases

I haven't tried running CTS yet, but GTA San Andreas runs
well now on DXVK v1.5.1 (before this change it crashed) so
I think CTS should be happy enough 🐸

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Echo J 2023-04-19 08:56:16 +03:00 committed by Marge Bot
parent ac4073a4ee
commit 729b34be8a

View file

@ -131,6 +131,7 @@ static const struct nil_format_info nil_format_infos[PIPE_FORMAT_COUNT] =
F3(A, B5G6R5_UNORM, R5G6B5, B, G, R, x, UNORM, B5G6R5, TD),
C4(A, B5G5R5A1_UNORM, A1R5G5B5, B, G, R, A, UNORM, A1B5G5R5, TD),
F3(A, B5G5R5X1_UNORM, X1R5G5B5, B, G, R, x, UNORM, A1B5G5R5, TD),
C4(A, A4B4G4R4_UNORM, NONE, A, B, G, R, UNORM, A4B4G4R4, T),
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),