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
spirv-reflect dumping wrong info for $Global block #48
Comments
Hmm, interesting. In DXC, we are trying to reuse types if possible in order to generate smaller SPIR-V. The above is such a case. Note that
|
Closing this since it's not a spirv-reflect bug. Will sort it out with DXC. |
@nsubtil Can I know what the actual problem is? We have a similar issue discussed in spir-v tools (KhronosGroup/SPIRV-Tools#1372). Is the problem that the text from spir-v reflect looks wrong? Or is the problem that another tool wants to do something with the name of the types (names of the members?), and that tool is confused by the output? I just want to be sure I understand the problem before I make too many changes. |
@s-perron the problem is that the output from SPIRV-Reflect looks wrong --- the two standalone variables ( |
Just wanted to give an update: microsoft/DirectXShaderCompiler#1385 is merged, which incorporates Steven's fix on spirv-opt: KhronosGroup/SPIRV-Tools#1640. This issue should be fixed now. |
Input HLSL:
Compiling with
dxc -spirv -fspv-reflect -fspv-target-env=vulkan1.1
and running spirv-reflect on the output, I see the following bit:It looks like it's dumping the
myconstants
block twice, instead of dumping $Globals the second time around.The text was updated successfully, but these errors were encountered: