diff options
author | Ilia Mirkin <[email protected]> | 2014-09-09 22:52:53 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-10-29 17:43:22 +0000 |
commit | 69c1aa728d59b9a10632f3f7704bb1c1c2ff8952 (patch) | |
tree | 730a9b9c13b055772678305d7d618ceb09fc66fd | |
parent | 1d1bc7f7c2d37c4522ee6a8021a1437d1c23c054 (diff) |
freedreno/ir3: INEG operates on src0, not src1
Signed-off-by: Ilia Mirkin <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
(cherry picked from commit 10273f84c22a5baaa5d23ea4d408bc50ef2e3b6e)
-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; } |