We have a crash in UE5 which looks to me like a result from a cherrypicked change (#7445) that adopted the condition !spvContext.isPS() instead of spvContext.isCS() which all other locations use before calling addDerivativeGroupExecutionMode():
This function even has an assertion for this condition:
assert(spvContext.isCS());
Interestingly, though, we hit a null pointer crash instead of this assertion.
Just wanted to raise this here because I won't have time for a PR including unit tests due to our release schedule.
We have a crash in UE5 which looks to me like a result from a cherrypicked change (#7445) that adopted the condition
!spvContext.isPS()instead ofspvContext.isCS()which all other locations use before callingaddDerivativeGroupExecutionMode():DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvEmitter.cpp
Line 9613 in d72e2b1
This function even has an assertion for this condition:
assert(spvContext.isCS());Interestingly, though, we hit a null pointer crash instead of this assertion.
Just wanted to raise this here because I won't have time for a PR including unit tests due to our release schedule.