Skip to content

Potential invalid DXIL allowed to be generated #7391

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

Open
weaseltron-sdunkley opened this issue Apr 28, 2025 · 0 comments
Open

Potential invalid DXIL allowed to be generated #7391

weaseltron-sdunkley opened this issue Apr 28, 2025 · 0 comments
Labels
bug Bug, regression, crash needs-triage Awaiting triage

Comments

@weaseltron-sdunkley
Copy link

I have a shader that needs to be converted to spirv from dxil for Steam Deck but fails and was told by the author of dxil-spirv that the dxil generated is invalid. I have a shader below that demonstrates the issue. This generates an alloca instruction of type %dx.types.Handle (line 17) which causes the issue with the spirv conversion. It can be circumvented by using the indices directly and I also found unrolling the loop made the problematic allocas go away. However, if this is invalid dxil, should it not then be caught by DXC?

Thank you

https://godbolt.org/z/o95nvYr87

@weaseltron-sdunkley weaseltron-sdunkley added bug Bug, regression, crash needs-triage Awaiting triage labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage
Projects
Status: No status
Development

No branches or pull requests

1 participant