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

NFC: Fix DXIL op is_const for Barrier and node create handle ops #6280

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

tex3d
Copy link
Contributor

@tex3d tex3d commented Feb 10, 2024

DXIL operations should use is_const=True for constant arguments. This allows for convenience methods to retrieve the constant value, and could (should, but currently doesn't) result in validation that the argument is constant.

BarrierByNodeRecordHandle SemanticFlags argument must be constant.
MetadataIdx for both createNodeOutputHandle and CreateNodeInputRecordHandle must be constant.

Copy link
Contributor

github-actions bot commented Feb 10, 2024

✅ With the latest revision this PR passed the Python code formatter.

Set is_const=True for MetadataIdx on CreateNodeOutputHandle and CreateNodeInputRecordHandle
Copy link
Member

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

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

Looks good!

@tex3d tex3d merged commit df588be into microsoft:main Feb 15, 2024
12 checks passed
@tex3d tex3d deleted the fix-dxil-op-const-args branch February 15, 2024 23:56
tex3d added a commit to tex3d/DirectXShaderCompiler that referenced this pull request Feb 16, 2024
…rosoft#6280)

DXIL operations should use is_const=True for constant arguments. This
allows for convenience methods to retrieve the constant value, and could
(should, but currently doesn't) result in validation that the argument
is constant.

`BarrierByNodeRecordHandle` SemanticFlags argument must be constant.
`MetadataIdx` for both `createNodeOutputHandle` and
`CreateNodeInputRecordHandle` must be constant.

(cherry picked from commit df588be)
tex3d added a commit that referenced this pull request Feb 17, 2024
…) (#6316)

DXIL operations should use is_const=True for constant arguments. This
allows for convenience methods to retrieve the constant value, and could
(should, but currently doesn't) result in validation that the argument
is constant.

`BarrierByNodeRecordHandle` SemanticFlags argument must be constant.
`MetadataIdx` for both `createNodeOutputHandle` and
`CreateNodeInputRecordHandle` must be constant.

(cherry picked from commit df588be)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants