Module: Mesa
Branch: main
Commit: 440cf7439d111dccd2b680054c53ad33ad00bb2a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=440cf7439d111dccd2b680054c53ad33ad00bb2a

Author: Gert Wollny <[email protected]>
Date:   Fri Jul 21 17:03:31 2023 +0200

r600/sfn: on Cayman loading an index register needs only one slot

Signed-off-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297>

---

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

diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_alugroup.cpp 
b/src/gallium/drivers/r600/sfn/sfn_instr_alugroup.cpp
index 953fe6d45dc..a0725209469 100644
--- a/src/gallium/drivers/r600/sfn/sfn_instr_alugroup.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_instr_alugroup.cpp
@@ -486,7 +486,7 @@ AluGroup::slots() const
    }
    if (m_addr_used) {
       ++result;
-      if (m_addr_is_index)
+      if (m_addr_is_index && s_max_slots == 5)
          ++result;
    }
 

Reply via email to