Skip to content
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

DXC generates corrupted DXIL IR from a code that uses RayQuery as a struct member #6998

Open
jaladreips opened this issue Nov 4, 2024 · 0 comments
Labels
bug Bug, regression, crash diagnostic Issues for diagnostics incorrect-code Issues relating to handling of incorrect code validation Related to validation or signing
Milestone

Comments

@jaladreips
Copy link

Description
DXC generates corrupted DXIL IR from a code that uses RayQuery as a struct member

Steps to Reproduce
https://godbolt.org/z/9a4WeTWW3

Actual Behavior
The allocateRayQuery instruction is missing.
rayquery allocation argument in other rayquery intrinsics is replaced with an undef. Like this:

  call void @dx.op.rayQuery_TraceRayInline(i32 179, i32 **undef**, %dx.types.Handle %6, i32 0, i32 -1, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+03), !dbg !48
  %7 = call i1 @dx.op.rayQuery_Proceed.i1(i32 180, i32 **undef**), !dbg !74

Environment
See godbolt link

@jaladreips jaladreips added bug Bug, regression, crash needs-triage Awaiting triage labels Nov 4, 2024
@damyanp damyanp added diagnostic Issues for diagnostics incorrect-code Issues relating to handling of incorrect code validation Related to validation or signing and removed needs-triage Awaiting triage labels Nov 5, 2024
@damyanp damyanp moved this to Triaged in HLSL Triage Nov 5, 2024
@damyanp damyanp added this to the Backlog milestone Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash diagnostic Issues for diagnostics incorrect-code Issues relating to handling of incorrect code validation Related to validation or signing
Projects
Status: Triaged
Development

No branches or pull requests

2 participants