aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-02-04 23:57:53 -0500
committerIlia Mirkin <[email protected]>2017-02-09 12:57:48 -0500
commit2e986fa80688b22657201d483888ddbc5d2be19b (patch)
treea38f4170f285b9268e6d96af915fa81e39538a42 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
parenteac5099c11c27aa49901846e254c92a4bd1723e2 (diff)
nvc0/ir: fix SET and SLCT emission
We were never emitting a .X flag for consuming condition code on SET, and weren't emitting a signed type for SLCT comparison. Discovered while working on int64 logic. Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
index b64ac61bf48..145868813e3 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp
@@ -1194,6 +1194,8 @@ CodeEmitterNVC0::emitSET(const CmpInstruction *i)
if (i->ftz)
code[1] |= 1 << 27;
+ if (i->flagsSrc >= 0)
+ code[0] |= 1 << 6;
emitCondCode(i->setCond, 32 + 23);
emitNegAbs12(i);