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

Don't rely on cached expressions #1975

Merged
merged 3 commits into from
Jun 14, 2022

Conversation

JCapucho
Copy link
Collaborator

@JCapucho JCapucho commented Jun 7, 2022

Expressions marked for caching might not be cached, this can happen for
example when these expressions are pre emitted (for example Contants).

closes #1944

Expressions marked for caching might not be cached, this can happen for
example when these expressions are pre emitted (for example Contants).
@teoxoy
Copy link
Member

teoxoy commented Jun 11, 2022

Should we add a test for this?

Expressions marked for caching might not be cached, this can happen for
example when these expressions are pre emitted (for example Contants).
@JCapucho
Copy link
Collaborator Author

Should we add a test for this?

@teoxoy added tests and found out that msl suffers from the same problem, thx for reminding to add tests.

@JCapucho JCapucho changed the title glsl-out: don't rely on cached expressions Don't rely on cached expressions Jun 12, 2022
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

I remember looking at that code a while back feeling something is off there but wasn't completely certain. Glad to see it resolved!

@jimblandy jimblandy merged commit c7e6769 into gfx-rs:master Jun 14, 2022
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.

[glsl-out] Thread panic when generating GLSL of dot function with zero-valued vector(s)
3 participants