Skip to content

[SER] HitObject::GetAttributes HLSL -> DXIL lowering and attributes sema #7361

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

Merged
merged 28 commits into from
Apr 23, 2025

Conversation

simoll
Copy link
Contributor

@simoll simoll commented Apr 17, 2025

Lowering for HitObject::GetAttributes<T>()

Specification: https://github.com/microsoft/hlsl-specs/blob/main/proposals/0027-shader-execution-reordering.md
DXC SER implementation tracker:: #7214

simoll and others added 24 commits March 26, 2025 13:28
- HLSL -> DXIL lowering
- ast, hlsl->dxil, dxilgen, and ScalarReplAggregatesHLSL tests

SER implementation tracker (microsoft#7214)
Co-authored-by: Chris B <beanz@abolishcrlf.org>
@simoll simoll changed the title Ser hlslattributes patch [SER] HitObject::GetAttributes HLSL -> DXIL lowering and attributes sema Apr 17, 2025
@simoll simoll mentioned this pull request Apr 17, 2025
41 tasks
@simoll
Copy link
Contributor Author

simoll commented Apr 17, 2025

This PR is based on #7262 diff and will be updated once #7262 has been merged

Copy link
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • We need a dxilgen pass test to test the lowering in isolation.
  • I think we need to change the form of the GetAttributes method to take an out udt parameter instead of following the ByteAddressBuffer::Load pattern and returning $funcT, which returns a reference, then pointer for HL op. For this point, we could defer until after preview, but I think we need to file a spec issue for follow-up.

@llvm-beanz
Copy link
Collaborator

@simoll, one of the introduced tests is failing, can you fix that up?

@simoll
Copy link
Contributor Author

simoll commented Apr 23, 2025

@simoll, one of the introduced tests is failing, can you fix that up?

Fixed it. A diagnostic signature changed here while the traceinvoke PR added another instance of that diagnostic. Merged main and fixed that use too.

@tex3d tex3d merged commit 847d5ad into microsoft:main Apr 23, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Apr 23, 2025
@simoll simoll deleted the ser_hlslattributes_patch branch April 23, 2025 16:54
@damyanp damyanp moved this to Closed in HLSL Support Apr 25, 2025
@damyanp damyanp removed this from HLSL Support Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants