[SPIR-V] Fix incorrect FOrdEqual result type

This commit is contained in:
DrChat 2017-12-21 15:12:02 -06:00
parent 9c48875a5d
commit 697eccf23e
1 changed files with 1 additions and 1 deletions

View File

@ -2312,7 +2312,7 @@ void SpirvShaderTranslator::ProcessScalarAluInstruction(
case AluScalarOpcode::kRcp: {
// dest = src0 != 0.0 ? 1.0 / src0 : 0.0;
auto c = b.createBinOp(spv::Op::OpFOrdEqual, float_type_, sources[0],
auto c = b.createBinOp(spv::Op::OpFOrdEqual, bool_type_, sources[0],
b.makeFloatConstant(0.f));
auto d = b.createBinOp(spv::Op::OpFDiv, float_type_,
b.makeFloatConstant(1.f), sources[0]);