Skip to content

Commit

Permalink
[dxso] Don't emit FOrdNotEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Nov 11, 2024
1 parent 6610f42 commit 3756e83
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_fixed_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ namespace dxvk {
case VK_COMPARE_OP_EQUAL: return spvModule.opFOrdEqual (boolType, alphaId, alphaRefId);
case VK_COMPARE_OP_LESS_OR_EQUAL: return spvModule.opFOrdLessThanEqual (boolType, alphaId, alphaRefId);
case VK_COMPARE_OP_GREATER: return spvModule.opFOrdGreaterThan (boolType, alphaId, alphaRefId);
case VK_COMPARE_OP_NOT_EQUAL: return spvModule.opFOrdNotEqual (boolType, alphaId, alphaRefId);
case VK_COMPARE_OP_NOT_EQUAL: return spvModule.opFUnordNotEqual (boolType, alphaId, alphaRefId);
case VK_COMPARE_OP_GREATER_OR_EQUAL: return spvModule.opFOrdGreaterThanEqual(boolType, alphaId, alphaRefId);
default:
case VK_COMPARE_OP_ALWAYS: return spvModule.constBool(true);
Expand Down
4 changes: 2 additions & 2 deletions src/dxso/dxso_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1286,11 +1286,11 @@ namespace dxvk {
case DxsoComparison::Equal: return m_module.opFOrdEqual (typeId, a, b); break;
case DxsoComparison::GreaterEqual: return m_module.opFOrdGreaterThanEqual(typeId, a, b); break;
case DxsoComparison::LessThan: return m_module.opFOrdLessThan (typeId, a, b); break;
case DxsoComparison::NotEqual: return m_module.opFOrdNotEqual (typeId, a, b); break;
case DxsoComparison::NotEqual: return m_module.opFUnordNotEqual (typeId, a, b); break;
case DxsoComparison::LessEqual: return m_module.opFOrdLessThanEqual (typeId, a, b); break;
case DxsoComparison::Always: return m_module.constbReplicant(true, type.ccount); break;
}
}
}


DxsoRegisterValue DxsoCompiler::emitValueLoad(
Expand Down
4 changes: 2 additions & 2 deletions src/spirv/spirv_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2494,13 +2494,13 @@ namespace dxvk {
}


uint32_t SpirvModule::opFOrdNotEqual(
uint32_t SpirvModule::opFUnordNotEqual(
uint32_t resultType,
uint32_t vector1,
uint32_t vector2) {
uint32_t resultId = this->allocateId();

m_code.putIns (spv::OpFOrdNotEqual, 5);
m_code.putIns (spv::OpFUnordNotEqual, 5);
m_code.putWord(resultType);
m_code.putWord(resultId);
m_code.putWord(vector1);
Expand Down
2 changes: 1 addition & 1 deletion src/spirv/spirv_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ namespace dxvk {
uint32_t vector1,
uint32_t vector2);

uint32_t opFOrdNotEqual(
uint32_t opFUnordNotEqual(
uint32_t resultType,
uint32_t vector1,
uint32_t vector2);
Expand Down

0 comments on commit 3756e83

Please sign in to comment.