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

SV_DispatchGrid semantic in a nested record #6928

Open
tcorringham opened this issue Sep 23, 2024 · 0 comments · May be fixed by #6931
Open

SV_DispatchGrid semantic in a nested record #6928

tcorringham opened this issue Sep 23, 2024 · 0 comments · May be fixed by #6931
Assignees
Labels
bug Bug, regression, crash
Milestone

Comments

@tcorringham
Copy link
Collaborator

Description
The SV_DispatchGrid DXIL metadata for a node input record is not generated in cases where:

  • the field with the SV_DispatchGrid semantic is in a nested record
  • the field with the SV_DispatchGrid semantic is in a record field
  • the field with the SV_DispatchGrid semantic is inherited from a base record
    Note that combinations of these scenarios are also possible.

Steps to Reproduce
https://godbolt.org/z/s5PdMbK95

Actual Behavior
The node input metadata record does not include a tag or pointer for a SV_DispatchGrid metadata record.

Environment

  • DXC version : (libdxcompiler.so: 1.8(dev;1-97af068e); libdxil.so: 1.8)
  • Host Operating System : Any (reproducible on both Windows and Linux)
@tcorringham tcorringham added bug Bug, regression, crash needs-triage Awaiting triage labels Sep 23, 2024
@tcorringham tcorringham self-assigned this Sep 23, 2024
tcorringham pushed a commit to tcorringham/DirectXShaderCompiler that referenced this issue Sep 24, 2024
The SV_DispatchGrid DXIL metadata for a node input record was not generated
in cases where:
- the field with the SV_DispatchGrid semantic was in a nested record
- the field with the SV_DispatchGrid semantic was in a record field
- the field with the SV_DispatchGrid semantic was inherited from a base record
- in any combinations of the above

Added FindDispatchGridSemantic() to be used by the AddHLSLNodeRecordTypeInfo()
function, and added a test case.

Fixes microsoft#6928
@damyanp damyanp added this to the Next Release milestone Sep 24, 2024
@damyanp damyanp removed the needs-triage Awaiting triage label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash
Projects
Status: Triaged
Development

Successfully merging a pull request may close this issue.

2 participants