diff options
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c index 48cdcb774e0..aa6ffa885b1 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c @@ -1929,8 +1929,10 @@ instr_cat2(const struct instr_translater *t, case TGSI_OPCODE_IABS: src0_flags = IR3_REG_ABS; break; - case TGSI_OPCODE_SUB: case TGSI_OPCODE_INEG: + src0_flags = IR3_REG_NEGATE; + break; + case TGSI_OPCODE_SUB: src1_flags = IR3_REG_NEGATE; break; } |