mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-04 14:17:24 +00:00
[SPIR-V] Fix incorrect FOrdEqual result type
This commit is contained in:
parent
9c48875a5d
commit
697eccf23e
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue