diff options
author | Ilia Mirkin <[email protected]> | 2014-09-09 22:52:53 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-09-12 16:25:52 -0400 |
commit | 10273f84c22a5baaa5d23ea4d408bc50ef2e3b6e (patch) | |
tree | 03c88dae362b2692691e8d93ab3c52c389b84076 /src/gallium/drivers/freedreno | |
parent | 572ffca050ff646bd9cdd031a44ec97966741745 (diff) |
freedreno/ir3: INEG operates on src0, not src1
Signed-off-by: Ilia Mirkin <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-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; } |