summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2020-12-28 10:54:24 -0800
committerMarge Bot <eric+marge@anholt.net>2021-01-03 23:07:21 +0000
commite3ca385f3d738b3cae47cf69b8a9353a2d94554c (patch)
treebd7d7f32fcda316c77569f6f03e360b9a8ea98a6
parentca5df4273e0a14b590694c918a15f63a68bf4073 (diff)
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>
-rw-r--r--src/gallium/drivers/d3d12/d3d12_format.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/drivers/d3d12/d3d12_format.c b/src/gallium/drivers/d3d12/d3d12_format.c
index 209d82d0f1d..49d738289e5 100644
--- a/src/gallium/drivers/d3d12/d3d12_format.c
+++ b/src/gallium/drivers/d3d12/d3d12_format.c
@@ -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)