r600/sb: lds ops have no dst register.
authorDave Airlie <airlied@redhat.com>
Wed, 10 Jan 2018 03:56:37 +0000 (03:56 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 03:36:52 +0000 (03:36 +0000)
Although these are op3s they don't have a dst reg.

Acked-By: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_dump.cpp

index 72a1b24467d035fcbc1703af0655f1f107f43fc4..3b5d9e77b2ec3319fc067abe73ff01ca5d4edc48 100644 (file)
@@ -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 {