Skip to content

Commit 19d0732

Browse files
authored
[Backport to 20] Missing addExtension in SPIRVWriter.cpp (KhronosGroup#3136)
KhronosGroup#2028 was supposed to get cherry-picked
1 parent a3ba8d4 commit 19d0732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3128,10 +3128,12 @@ bool LLVMToSPIRVBase::transDecoration(Value *V, SPIRVValue *BV) {
31283128
if (FMF.allowContract()) {
31293129
M |= FPFastMathModeAllowContractFastINTELMask;
31303130
BM->addCapability(CapabilityFPFastMathModeINTEL);
3131+
BM->addExtension(ExtensionID::SPV_INTEL_fp_fast_math_mode);
31313132
}
31323133
if (FMF.allowReassoc()) {
31333134
M |= FPFastMathModeAllowReassocINTELMask;
31343135
BM->addCapability(CapabilityFPFastMathModeINTEL);
3136+
BM->addExtension(ExtensionID::SPV_INTEL_fp_fast_math_mode);
31353137
}
31363138
}
31373139
}

0 commit comments

Comments
 (0)