-
Notifications
You must be signed in to change notification settings - Fork 706
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] Ray queries do not work with -fspv-debug=vulkan-with-source #7033
Comments
@keptsecret we usually compile with We do have a significant difference that @ChristianReinbold curious question, why are you using ray-queries and RT pipeline at the same time? |
@devshgraphicsprogramming I always build my MWEs from a small snippet which used to be for the RT pipeline. I never updated the decorator and arguments though. When changing to compute shaders the problem still persists: https://godbolt.org/z/36PMMznKd Did you double-check that you compile the unit test with the flag? I did not found a configuration nor any hint in the DXC code why ray queries could work with it. |
Now we always tend to use Spir-V intrinsics because there's less problem/hassle for us than relying on the HLSL Spir-V codegen for certain "extensions" Here's our custom Godbolt and STL library, it works and compiles You can clearly see
@keptsecret can you dig up the version that used HLSL intrinsic style RayQuery ? |
@ChristianReinbold, huh |
OK, there's another similar issue #5113 The Non-Semantic Debug info extension was authored by the Renderdoc author, Renderdoc probably doesn't support ray-queries yet and definitely doesn't support RT pipeline shaders. Because of the above, anything that renderdoc doesn't support/won't debug DXC probably never tested emitting This leads to a question do other debuggers such as Nsight even require this extension to give you source level debug? |
Regarding options It does not seem surprising that SpirV intrinsics work. I have not checked, but I would assume that DXC does not even try to generate some meaningful debug info for it. |
Good to know that NSight debugs the same way. |
Actually seems like even with Spir-V intrinsics it will segfault. |
@devshgraphicsprogramming @ChristianReinbold |
Description
When using ray queries together with
-fspv-debug=vulkan-with-source
, DXC crashes.Steps to Reproduce
Find a reproducer here: https://godbolt.org/z/oxYerbYPP
Compile
with options
-T lib_6_4 -spirv -fspv-target-env=vulkan1.2 -enable-16bit-types -HV 2021 -fspv-debug=vulkan-with-source
.After digging a bit in sources, to me the easiest fix seems to ensure that the spirv ray query type is lowered to an opaque debug type. The attached one-line patch debug_rayquery.patch should do this.
Environment
Recent version on godbolt.org: libdxcompiler.so: 1.8(dev;1-d39324e0); libdxil.so: 1.8
The text was updated successfully, but these errors were encountered: