Skip to content

Fix type resolution issue in GL push constants#9116

Open
cwfitzgerald wants to merge 2 commits intogfx-rs:trunkfrom
cwfitzgerald:cw/regression-9115
Open

Fix type resolution issue in GL push constants#9116
cwfitzgerald wants to merge 2 commits intogfx-rs:trunkfrom
cwfitzgerald:cw/regression-9115

Conversation

@cwfitzgerald
Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald commented Feb 26, 2026

Fixes #9115

@cwfitzgerald cwfitzgerald changed the title Add regression test for issue_9115 Fix type resolution issue in GL push constants Feb 26, 2026
@inner-daemons inner-daemons self-assigned this Feb 26, 2026
@inner-daemons inner-daemons self-requested a review February 26, 2026 17:01
Copy link
Copy Markdown
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

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

Generally looks good, 2 nits.

Also, the tests go in regression but is this actually a regression, or just an issue we've had since forever?

@cwfitzgerald
Copy link
Copy Markdown
Member Author

Regression tests help prevent re-regressions. Does this fully make sense, dunno. But I've used the regression folder for "misc tests to prevent a given issue from coming back"

@inner-daemons inner-daemons removed their assignment Feb 27, 2026
Copy link
Copy Markdown
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

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

I'm gonna approve this assuming you haven't changed anything majorly since last time.

Copy link
Copy Markdown
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.

Would it be better to simply change naga::back::glsl::ImmediateItem to hold a TypeInner instead of a handle? That's a trivial change to Naga, and then wgpu-hal would be simpler, not more complicated.

@cwfitzgerald
Copy link
Copy Markdown
Member Author

Yeah probably, let me see if that works.

@inner-daemons inner-daemons mentioned this pull request Mar 10, 2026
6 tasks
@inner-daemons
Copy link
Copy Markdown
Collaborator

Care should be taken when merging in #9064 to this PR.

@inner-daemons
Copy link
Copy Markdown
Collaborator

Any updates? Should we try to get this in for the next release?

@cwfitzgerald cwfitzgerald requested a review from jimblandy March 14, 2026 04:45
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.

Using immediates on GL panics in certain condition

4 participants