-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPIR-V] Failed to compile raytracing shaders with "-fspv-debug=vulkan-with-source" #5113
Comments
I've tracked a little bit why the Would adding proper implementation for that type be the desired implementation? If this issue is triable for first contributing, I want to try it. |
Hi @Snowapril, Just kindly ask if there's any progress for this issue? I'm not familiar with dxc implementation or the plan. It's just dxc is the only hope to compile raytracing shaders to SPIRV with debug information, as glslangValidator is even worse. :-p |
@Snowapril @maoenpei -fspv-debug=vulkan-with-source for ray tracing shaders has not been tested a lot, partly due to the fact that renderdoc does not currently support source shader debugging for ray tracing. Why are you interested in compiling with -fspv-debug=vulkan-with-source? |
@greg-lunarg I'm working on a developing tool (Nsight Graphics, similar to RenderDoc) that reflects the SPIRV <-> HLSL correlation. Recently we've added support of the "function scope" information for the shader. The first version only supports DXIL and now it's on SPIRV. There's a spec that clearly describes the non_semantic_info extension so the dxc bug doesn't block our work (coding, testing). But our tool cannot say the functionality is fully supported as long as dxc crashes. |
@Snowapril If you believe you have a fix please contribute. I don't know when any of the maintainers will be able to get to it. As Greg said, there may be many more issue with ray tracing, so you might be opening up a much bigger issue. However, I am happy as long as we keep getting better. |
- This change adds a switch case for TK_AccelerationStructureNV in lowerToDebugType - Before, compiling a shader for vulkan containing an acceleration structure and using -fspv-debug=vulkan-with-source would cause a crash. Fixes microsoft#5113
- This change adds a switch case for TK_AccelerationStructureNV in lowerToDebugType - Before, compiling a shader for vulkan containing an acceleration structure and using -fspv-debug=vulkan-with-source would cause a crash. Fixes #5113
dxc crashes while compiling the following shader:
My compiling command is:
And the result is:
If I delete option "-fspv-debug=vulkan-with-source", the compiling works.
If I delete this line "RaytracingAccelerationStructure scene : register(t0);" and the code that references "scene", the compiling works.
After I build dxc myself, I see there's a null pointer access without checking in EmitVisitor.cpp:
The text was updated successfully, but these errors were encountered: