summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHyunjun Ko <[email protected]>2019-06-20 22:12:23 +0900
committerRob Clark <[email protected]>2019-06-20 08:34:09 -0700
commitf7f8fb1b5505094a89ca74f8805a9480334c5e22 (patch)
treee8ae110b306641026a08404b216eec47209bfff6 /src
parent546236e27ff7d5be1b8442a62f669926bd244a95 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3.h2
1 files changed, 1 insertions, 1 deletions
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;