From 10273f84c22a5baaa5d23ea4d408bc50ef2e3b6e Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 9 Sep 2014 22:52:53 -0400 Subject: [PATCH] freedreno/ir3: INEG operates on src0, not src1 Signed-off-by: Ilia Mirkin Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_compiler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2