Mesa (master): d3d12: Remove copy/pasted line of array initialization

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jan 3 23:24:44 UTC 2021


Module: Mesa
Branch: master
Commit: e3ca385f3d738b3cae47cf69b8a9353a2d94554c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3ca385f3d738b3cae47cf69b8a9353a2d94554c

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Mon Dec 28 10:54:24 2020 -0800

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 at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8248>

---

 src/gallium/drivers/d3d12/d3d12_format.c | 1 -
 1 file changed, 1 deletion(-)

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)



More information about the mesa-commit mailing list