Feature request: disable uniformity analysis on shader creation #3135
Labels
area: naga processing
Passes over IR in the middle
area: validation
Issues related to validation, diagnostics, and error handling
help required
We need community help to make this happen.
naga
Shader Translator
type: enhancement
New feature or request
Uniformity analysis of WGSL is too strict and fails to accept some valid shaders, including the coarse rasterization stage of piet-gpu. This is captured in an upstream WGSL bug and mitigations are being discussed. One such mitigation is to opt-out of the analysis.
I'd like a flag to disable uniformity analysis at shader creation time. That flag already exists in the naga API as
ValidationFlags
, but that's currently hardcoded toall()
in wgpu-core'sDevice::create_shader_module()
method, so basically what I'm asking is for that to be plumbed through.The feature can be a temporary stopgap, and should probably be marked as such, until the issue is resolved upstream.
The text was updated successfully, but these errors were encountered: