d3d12: Remove copy/pasted line of array initialization

Clang warns that the second instance overrides array entry
initialization, so remove the copy/pasted line. UNORM entries
are already initialized above (with alpha explicitly, and
NO_ALPHA used for the others), so this was just a duplicate and
had no real impact.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8248>
This commit is contained in:
Jesse Natalie 2020-12-28 10:54:24 -08:00 committed by Marge Bot
parent ca5df4273e
commit e3ca385f3d

View file

@ -92,7 +92,6 @@ static const DXGI_FORMAT formats[PIPE_FORMAT_COUNT] = {
[PIPE_FORMAT_A8_UNORM] = DXGI_FORMAT_A8_UNORM,
MAP_EMU_FORMAT_NO_ALPHA(8, UNORM)
MAP_EMU_FORMAT(8, SNORM)
MAP_EMU_FORMAT(8, SNORM)
MAP_EMU_FORMAT(8, SINT)
MAP_EMU_FORMAT(8, UINT)
MAP_EMU_FORMAT(16, UNORM)