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

Implement WGSL uniformity analysis #4369

Open
jimblandy opened this issue Feb 23, 2022 · 1 comment
Open

Implement WGSL uniformity analysis #4369

jimblandy opened this issue Feb 23, 2022 · 1 comment
Labels
area: validation Issues related to validation, diagnostics, and error handling naga Shader Translator

Comments

@jimblandy
Copy link
Member

jimblandy commented Feb 23, 2022

Naga should implement the uniformity analysis introduced in gpuweb/gpuweb@0561a0ee.

I think this would replace the uniformity analysis we have now. It could still be enabled by ValidationFlags::CONTROL_FLOW_UNIFORMITY.

The algorithm given in the spec looks, at first glance, like it should be straightforward to implement on Naga's IR, even though we don't have handles/indices for statements, only expressions.

There are also some more ideas on how to update our analysis in #4320.

@ErichDonGubler
Copy link
Member

Firefox downstream tracking issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1850044

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Issues related to validation, diagnostics, and error handling naga Shader Translator
Projects
Status: No status
Development

No branches or pull requests

4 participants