aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-04-09 18:22:57 +0200
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:04 +0200
commitd07e4421ab39d10fb928dffee66698fef2679add (patch)
treee966ac32a6a91dc085cbbc59049eacca6143615d /src
parentf8c3212cbb0cddbfcf1853b55e954de31e0ff555 (diff)
nv50/ir: Fix type of the instruction created by mkCmp() for dst in FILE_FLAGS.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp
index af1bdd52f35..f7dac25c116 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp
@@ -225,7 +225,8 @@ BuildUtil::mkCmp(operation op, CondCode cc, DataType ty, Value *dst,
{
CmpInstruction *insn = new_CmpInstruction(func, op);
- insn->setType(dst->reg.file == FILE_PREDICATE ? TYPE_U8 : ty, ty);
+ insn->setType((dst->reg.file == FILE_PREDICATE ||
+ dst->reg.file == FILE_FLAGS) ? TYPE_U8 : ty, ty);
insn->setCondition(cc);
insn->setDef(0, dst);
insn->setSrc(0, src0);