Skip to content

Conversation

caibear
Copy link
Contributor

@caibear caibear commented Sep 12, 2025

Connections
Fixes #8151

Description
Fixes load expressions being executed after any barrier in the naga SPIR-V frontend.

Testing
I used the test case from my original issue.
I have not added a test case for memory barriers (only control barriers).

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@teoxoy teoxoy force-pushed the fix_barrier_reorder branch from d02e7b3 to f431a3f Compare September 24, 2025 15:52
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.

Makes sense - thanks!

@teoxoy teoxoy enabled auto-merge (squash) September 24, 2025 15:54
@teoxoy teoxoy merged commit d2ee4b8 into gfx-rs:trunk Sep 24, 2025
41 checks passed
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.

Naga reorders workgroup barriers
2 participants