freedreno/ir3: fix typo
authorHyunjun Ko <zzoon@igalia.com>
Thu, 20 Jun 2019 13:12:23 +0000 (22:12 +0900)
committerRob Clark <robdclark@chromium.org>
Thu, 20 Jun 2019 15:34:09 +0000 (08:34 -0700)
Fixes: a9b556d3a04 ("freedreno/ir3: check the type of regs of absneg opcode in is_same_type_mov")
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3.h

index 4d1a44b1deced126bfccc192521ab6ccb2f350d8..c0710af6281efcf65e62bcdcb92d607adc0b66b8 100644 (file)
@@ -618,7 +618,7 @@ static inline bool is_same_type_reg(struct ir3_register *reg1,
                struct ir3_register *reg2)
 {
        unsigned type_reg1 = (reg1->flags & (IR3_REG_HIGH | IR3_REG_HALF));
-       unsigned type_reg2 = (reg1->flags & (IR3_REG_HIGH | IR3_REG_HALF));
+       unsigned type_reg2 = (reg2->flags & (IR3_REG_HIGH | IR3_REG_HALF));
 
        if (type_reg1 ^ type_reg2)
                return false;