Skip to content

Commit a8ea3b2

Browse files
pveleskojsji
authored andcommitted
Add missing SPV_INTEL_fp_fast_math_mode (#3139)
Co-authored-by: Pekka Jääskeläinen <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@ee4801aa5fd53de
1 parent 875605f commit a8ea3b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,10 +3130,12 @@ bool LLVMToSPIRVBase::transDecoration(Value *V, SPIRVValue *BV) {
31303130
if (FMF.allowContract()) {
31313131
M |= FPFastMathModeAllowContractFastINTELMask;
31323132
BM->addCapability(CapabilityFPFastMathModeINTEL);
3133+
BM->addExtension(ExtensionID::SPV_INTEL_fp_fast_math_mode);
31333134
}
31343135
if (FMF.allowReassoc()) {
31353136
M |= FPFastMathModeAllowReassocINTELMask;
31363137
BM->addCapability(CapabilityFPFastMathModeINTEL);
3138+
BM->addExtension(ExtensionID::SPV_INTEL_fp_fast_math_mode);
31373139
}
31383140
}
31393141
}

0 commit comments

Comments
 (0)