r600/sfn: correct ring op patching
authorGert Wollny <gert.wollny@collabora.com>
Sat, 25 Jul 2020 22:30:06 +0000 (00:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Sep 2020 08:30:41 +0000 (08:30 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6706>

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

index b19c029..cf40f2a 100644 (file)
@@ -331,7 +331,7 @@ void MemRingOutIntruction::remap_registers_child(std::vector<rename_reg_pair>& m
 
 void MemRingOutIntruction::patch_ring(int stream)
 {
-   const ECFOpCode ring_op[4] = {cf_mem_ring, cf_mem_ring2, cf_mem_ring3, cf_mem_ring3};
+   const ECFOpCode ring_op[4] = {cf_mem_ring, cf_mem_ring1, cf_mem_ring2, cf_mem_ring3};
 
    assert(stream < 4);
    m_ring_op = ring_op[stream];