From: Hyunjun Ko Date: Thu, 20 Jun 2019 13:12:23 +0000 (+0900) Subject: freedreno/ir3: fix typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7f8fb1b5505094a89ca74f8805a9480334c5e22;p=mesa.git freedreno/ir3: fix typo Fixes: a9b556d3a04 ("freedreno/ir3: check the type of regs of absneg opcode in is_same_type_mov") Reviewed-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index 4d1a44b1dec..c0710af6281 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -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;