r600/sfn: Fix Geometry shader for Cayman
authorGert Wollny <gert.wollny@collabora.com>
Fri, 30 Apr 2021 21:54:40 +0000 (23:54 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Tue, 18 May 2021 20:16:07 +0000 (22:16 +0200)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10608>

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

index 0541e0a..acc1125 100644 (file)
@@ -248,7 +248,7 @@ void GeometryShaderFromNir::emit_adj_fix()
                              {adjhelp0, m_per_vertex_offsets[i],
                               m_per_vertex_offsets[rotate_indices[i]]},
                              {alu_write});
-      if (i == 3)
+      if ((get_chip_class() == CAYMAN && i == 2) || (i  == 3))
          ir->set_flag(alu_last_instr);
       emit_instruction(ir);
    }