-
Notifications
You must be signed in to change notification settings - Fork 808
[SER] 'reordercoherent' HLSL attribute and DXIL encoding #7250
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
Conversation
c34e1e1 to
f7ac9b8
Compare
tex3d
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good; some minor comments.
tools/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent2.hlsl
Outdated
Show resolved
Hide resolved
tools/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent.hlsl
Show resolved
Hide resolved
tools/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent3.hlsl
Show resolved
Hide resolved
tools/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent_ast.hlsl
Show resolved
Hide resolved
...s/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent_for_arg.hlsl
Outdated
Show resolved
Hide resolved
...s/clang/test/HLSLFileCheck/hlsl/types/modifiers/reordercoherent/reordercoherent_for_arg.hlsl
Outdated
Show resolved
Hide resolved
4db620d to
d7d30ad
Compare
|
There was a comment requesting a test for invalid dxil. Not adding that test here but tracking this under #7214 (as we do for the other 'check-fail' tests) |
tex3d
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Only one minor thing I noticed, where the dxcdisassembler.cpp should probably be updated to print the new attribute.
tools/clang/test/CodeGenDXIL/hlsl/attributes/reordercoherent_for_arg.hlsl
Outdated
Show resolved
Hide resolved
Specification: https://github.com/microsoft/hlsl-specs/blob/main/proposals/0027-shader-execution-reordering.md 'reordercoherent' encoding hlsl-specs PR: microsoft/hlsl-specs#453 DXC SER implementation tracker: microsoft#7214
d7d30ad to
d343b2d
Compare
|
I've addressed all the remaining minor requests. This is ready to merge from my end. |
damyanp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@tex3d - you'll need to submit a new as changes were pushed since your last review.
tex3d
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Co-authored-by: Chris B <[email protected]>
Co-authored-by: Chris B <[email protected]>
Co-authored-by: Chris B <[email protected]>
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
llvm-beanz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small request with a suggestion to apply.
Co-authored-by: Chris B <[email protected]>
|
@tex3d @llvm-beanz . please re-review. I've updated the test, this is ready to merge from my end |
Validates: All resources All instructions using resources Rules: 'reordercoherent' may only be used in SM6.9+ in resource handles and resource declarations. Increment/DecrementCounter unsupported on 'reordercoherent' resources. Create a new DXIL 1.9 variant of the 'CompileWhenOkThenCheckRDAT' container test and restore the old one without 'reordercoherent' (pre-microsoft#7250). The validator now rejects 'reordercoherent' in DXIL 1.3 and accepts from DXIL 1.9+. SER implementation tracker: microsoft#7214
Validates: All resources All instructions using resources Rules: 'reordercoherent' may only be used in SM6.9+ in resource handles and resource declarations. Increment/DecrementCounter unsupported on 'reordercoherent' resources. Create a new DXIL 1.9 variant of the 'CompileWhenOkThenCheckRDAT' container test and restore the old one without 'reordercoherent' (pre-#7250). The validator now rejects 'reordercoherent' in DXIL 1.3 and accepts from DXIL 1.9+. SER implementation tracker: #7214 --------- Co-authored-by: Tex Riddell <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Specification: https://github.com/microsoft/hlsl-specs/blob/main/proposals/0027-shader-execution-reordering.md
'reordercoherent' encoding hlsl-specs PR: microsoft/hlsl-specs#453
DXC SER implementation tracker: #7214