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

[Error Handling] Fix DxcContainerBuilder error handling #7056

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

Conversation

bob80905
Copy link
Collaborator

Some error handling changes were incorrectly made to the container assembler, as described in the issue below.
This is bad because the API protocol for error handling must remain consistent across all functions. This PR
aims to restore the correct semantic meaning of returning bad HR values.
Fixes #7051

@bob80905 bob80905 requested a review from a team as a code owner January 11, 2025 00:51
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.

If this succeeded testing without the suggested change to check valHR before hashing, we are missing a test that makes sure it doesn't hash the shader even when validation fails.

lib/DxilContainer/DxcContainerBuilder.cpp Outdated Show resolved Hide resolved
lib/DxilContainer/DxcContainerBuilder.cpp Outdated Show resolved Hide resolved
@bob80905 bob80905 self-assigned this Jan 16, 2025
Copy link
Contributor

github-actions bot commented Jan 17, 2025

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

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.

Looks good.

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.

Regression in ContainerBuilder error handling code introduced by #6853
2 participants