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

Author: Dave Airlie <airl...@redhat.com>
Date:   Wed Jan 10 03:56:37 2018 +0000

r600/sb: lds ops have no dst register.

Although these are op3s they don't have a dst reg.

Acked-By: Roland Scheidegger <srol...@vmware.com>
Signed-off-by: Dave Airlie <airl...@redhat.com>

---

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

diff --git a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp 
b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
index 72a1b24467..3b5d9e77b2 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
@@ -232,7 +232,7 @@ static void print_dst(sb_ostream &s, bc_alu &alu)
                reg_char = 'T';
        }
 
-       if (alu.write_mask || alu.op_ptr->src_count == 3) {
+       if (alu.write_mask || (alu.op_ptr->src_count == 3 && alu.op < 
LDS_OP2_LDS_ADD)) {
                s << reg_char;
                print_sel(s, sel, alu.dst_rel, alu.index_mode, 0);
        } else {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to