Mesa (master): r600/sfn: Fix default z swizzle for GDS instructions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 20 09:42:30 UTC 2020


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

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sun Jul  5 16:46:32 2020 +0200

r600/sfn: Fix default z swizzle for GDS instructions

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>

---

 src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp b/src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp
index 002dba6a399..c84ed642a12 100644
--- a/src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp
@@ -56,7 +56,7 @@ GDSInstr::GDSInstr(ESDOp op, const GPRVector& dest,  const PValue& value,
 {
       assert(value);
       m_src_swizzle[1] = value->chan();
-      m_src_swizzle[2] = PIPE_SWIZZLE_MAX;
+      m_src_swizzle[2] = PIPE_SWIZZLE_0;
 }
 
 GDSInstr::GDSInstr(ESDOp op, const GPRVector& dest,



More information about the mesa-commit mailing list