[Freedreno] [PATCH 2/5] freedreno/ir3: INEG operates on src0, not src1
Ilia Mirkin
imirkin at alum.mit.edu
Tue Sep 9 19:52:53 PDT 2014
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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 6b674f7..0459e92 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;
}
--
1.8.5.5
More information about the Freedreno
mailing list