summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-03-02 18:11:07 +0100
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2016-03-02 20:36:18 +0100
commitb94a46aa8e34de790724bbc0f823fd56555d0cdc (patch)
tree325516bfcd6a71164e299aa27a2ce15aa6ce3420 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
parent535002f4da61248096712a23cc4951d47fcd6c8d (diff)
gk110/ir: fix wrong emission of NOT modifier for VOTE
Spotted by Coverity. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reported-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
index b6b3ec7b948..8512d0d415f 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -1386,7 +1386,7 @@ CodeEmitterGK110::emitVOTE(const Instruction *i)
defId(i->def(0), 2);
defId(i->def(1), 48);
if (i->src(0).mod == Modifier(NV50_IR_MOD_NOT))
- code[0] |= 1 << 45;
+ code[1] |= 1 << 13;
srcId(i->src(0), 42);
}