Skip to content

[naga] Implement subgroup quad ops#5684

Closed
valaphee wants to merge 5 commits intogfx-rs:trunkfrom
valaphee:subgroup-quad
Closed

[naga] Implement subgroup quad ops#5684
valaphee wants to merge 5 commits intogfx-rs:trunkfrom
valaphee:subgroup-quad

Conversation

@valaphee
Copy link
Copy Markdown
Contributor

@valaphee valaphee commented May 9, 2024

Connections
Partially solves #5555
Resolves #5670
https://github.com/gpuweb/gpuweb/blob/main/proposals/subgroups.md

Description
Describe what problem this is solving, and how it's solved.

Testing
Explain how this change is tested.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@valaphee valaphee marked this pull request as ready for review May 16, 2024 18:57
@valaphee valaphee requested a review from a team May 16, 2024 18:57
@valaphee valaphee requested a review from a team as a code owner May 16, 2024 18:57
Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Approving the (minimal) wgpu side

@teoxoy teoxoy self-assigned this Jun 13, 2024
/// Each gathers from their lane xored with the given by the expression
ShuffleXor(Handle<Expression>),
/// All gather from the same lane at the index given by the expression
QuadBroadcast(Handle<Expression>),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In the proposal this expression needs to be a constant-expression due to a SPIR-V limitation.

Before version 1.5, Index must come from a constant instruction.


instruction
}
pub(super) fn group_non_uniform_quad_broadcast(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be unused.

@JMS55
Copy link
Copy Markdown
Collaborator

JMS55 commented Sep 6, 2024

Any update on this?

@teoxoy
Copy link
Copy Markdown
Member

teoxoy commented Jan 9, 2025

@valaphee are you still planning to push this forward?

@valaphee
Copy link
Copy Markdown
Contributor Author

its a bit outdated, and don't have the time to complete this PR atm

@cwfitzgerald cwfitzgerald added the help required We need community help to make this happen. label Jan 11, 2025
@cwfitzgerald
Copy link
Copy Markdown
Member

Closing for now - please re-open if you (or anyone else) wants to push this forward.

@dzamkov dzamkov mentioned this pull request May 12, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help required We need community help to make this happen.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Subgroup quad operations

4 participants