DXCompiler segfaults when it's impossible to allocate clip/cull registers #6964
Labels
bug
Bug, regression, crash
crash
DXC crashing or hitting an assert
diagnostic
Issues for diagnostics
incorrect-code
Issues relating to handling of incorrect code
Milestone
Description
DXCompiler segfaults when trying to compile shaders in which it's impossible to allocate clip/cull registers.
Steps to Reproduce
Compile this shader with DXC (profile
vs_6_0
):The compiler will segfault.
Also see on Compiler Explorer.
Other shaders will cause the same behavior:
Actual Behavior
The shader is indeed invalid (you cannot allocate three registers for clip/cull distances), so I expect an error message, but not a segfault. The same applies to the other shaders, except that they fail for different reasons (all related to allocating clip/cull registers).
Environment
The text was updated successfully, but these errors were encountered: