Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

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?

JCapucho added 2 commits June 12, 2022 16:29
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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