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

Add handle validation pass to Validator #2090

Merged
merged 7 commits into from
Dec 17, 2022

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Oct 19, 2022

Resolves #1692. Recommended review experience is commit-by-commit.

@ErichDonGubler ErichDonGubler force-pushed the handle-validation branch 5 times, most recently from 7a3d209 to fb43860 Compare October 25, 2022 23:33
@ErichDonGubler ErichDonGubler marked this pull request as ready for review October 25, 2022 23:34
@ErichDonGubler
Copy link
Member Author

@jimblandy: I think that this is finally ready! 🙌🏻

@ErichDonGubler ErichDonGubler force-pushed the handle-validation branch 2 times, most recently from 6b3dab0 to a040828 Compare October 27, 2022 16:51
@ErichDonGubler
Copy link
Member Author

@jimblandy: Just wanted to ping here again, and get confirmation on whether reviewing this is a priority for you or not. Whatever the case, thanks in advance! 🙂

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Okay, this looks great - just what we need. There are a few omissions that need to be addressed, and I had some suggestions.

src/proc/mod.rs Outdated Show resolved Hide resolved
src/valid/analyzer.rs Outdated Show resolved Hide resolved
src/valid/expression.rs Show resolved Hide resolved
src/valid/expression.rs Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/mod.rs Outdated Show resolved Hide resolved
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 13, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 13, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 13, 2022
@ErichDonGubler
Copy link
Member Author

ErichDonGubler commented Dec 13, 2022

Did some further clippy warning hunting with a02b02b, 00f4f6b, ce6f85e, and 6493235. EDIT: CI is green, yay!

@ErichDonGubler
Copy link
Member Author

ErichDonGubler commented Dec 13, 2022

@jimblandy: Thanks for the thorough feedback. Once you've had a chance to look through the round of fixes I've pushed up here, LMK, and I'll squash things down into a sane set of commits again. Everything squashes down cleanly, so 😤.

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

When our CI runs:

cargo check -p naga --no-default-features

it gets a lot of warnings about unused functions, etc. in src/valid/handles.rs. We should put #[cfg(feature = "validate")] in the appropriate places (perhaps on the entire valid::handles module?) to make the non-validating configuration compile cleanly again.

src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

I'll need to get back to the rest of this tomorrow, but here are some comments so far.

src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Show resolved Hide resolved
src/proc/mod.rs Outdated Show resolved Hide resolved
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 13, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 13, 2022
@ErichDonGubler
Copy link
Member Author

@jimblandy:

When our CI runs … it gets a lot of warnings about unused functions, etc. in src/valid/handles.rs. We should put #[cfg(feature = "validate")] in the appropriate places (perhaps on the entire valid::handles module?) to make the non-validating configuration compile cleanly again.

Silenced warnings with 113957a.

ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 15, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 15, 2022
@ErichDonGubler
Copy link
Member Author

ErichDonGubler commented Dec 15, 2022

I've autosquashed all reviewed content into a few (hopefully nice) commits. Now that I've rebased onto master, I'm getting unrelated CI failures. I've submitted #2176 to resolve them.

CC @jimblandy.

src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
src/valid/handles.rs Outdated Show resolved Hide resolved
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 16, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 16, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 16, 2022
ErichDonGubler added a commit to ErichDonGubler/naga that referenced this pull request Dec 16, 2022
Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Looks great! Just two small changes, and then I think we're ready to go.

src/arena.rs Outdated Show resolved Hide resolved
src/valid/expression.rs Show resolved Hide resolved
@jimblandy jimblandy enabled auto-merge (squash) December 17, 2022 00:25
@jimblandy jimblandy merged commit 461fdda into gfx-rs:master Dec 17, 2022
@ErichDonGubler ErichDonGubler deleted the handle-validation branch December 19, 2022 14:34
jimblandy added a commit to jimblandy/naga that referenced this pull request Jan 10, 2023
jimblandy added a commit to jimblandy/naga that referenced this pull request Jan 11, 2023
jimblandy added a commit to jimblandy/naga that referenced this pull request Jan 15, 2023
jimblandy added a commit that referenced this pull request Jan 15, 2023
Undo some changes from #1668, now that #2090 has been merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle validation pass
2 participants