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

[SER] Patch 1: HitObject type lowering and SM 6.9 enablement #7097

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

simoll
Copy link
Contributor

@simoll simoll commented Jan 29, 2025

Reduction of the complete SER implementation to just the HitObject type and its default constructor.

This has most of the infrastructure changes in DXC to support SER, eg static member functions for builtins, HitObject scalar type.

Specification PR: microsoft/hlsl-specs#277

@simoll simoll requested a review from a team as a code owner January 29, 2025 12:27
@simoll
Copy link
Contributor Author

simoll commented Jan 29, 2025

@microsoft-github-policy-service agree company="NVIDIA"

Copy link
Contributor

github-actions bot commented Feb 19, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

Note, as per microsoft/hlsl-specs#378, ReorderThread needs to be named MaybeReorderThread.

Reduction of the complete SER implementation to just the HitObject type
and its default constructor.

Specification PR: microsoft/hlsl-specs#277
When specifying more than four stages in a PAQ, the
SmallVector in the PayloadAccessAnnotation starts to allocate memory.
That memory is never free'd.

The hitobject-entry-errors accidentally triggered this:

struct [raypayload] Payload
{
    float elem
-          : write(caller,closesthit,anyhit,closesthit,miss)
-          : read(caller,closesthit,anyhit,closesthit,miss);
+          : write(caller,anyhit,closesthit,miss)
+          : read(caller,anyhit,closesthit,miss);
};
…r codegen, use 'MOP_HitObject_MakeNop' as default ctor
…icFunctions / revert ULE shortcut for ::dx namespace
@simoll
Copy link
Contributor Author

simoll commented Feb 26, 2025

Note, as per microsoft/hlsl-specs#378, ReorderThread needs to be named MaybeReorderThread.

Right, ReorderThread is now renamed to MaybeReorderThread everywhere

@simoll simoll requested a review from llvm-beanz February 26, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

6 participants