r600/sfn: Fix default z swizzle for GDS instructions
authorGert Wollny <gert.wollny@collabora.com>
Sun, 5 Jul 2020 14:46:32 +0000 (16:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 09:32:51 +0000 (09:32 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>

src/gallium/drivers/r600/sfn/sfn_instruction_gds.cpp

index 002dba6a399f3414d58ec968b51b6565d9bffd63..c84ed642a12d8fd2f87d87def9199c932c29098d 100644 (file)
@@ -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,