diff options
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_build_util.cpp | 3 |
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); |