-
Notifications
You must be signed in to change notification settings - Fork 194
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
SPIR-V output fails VUID-StandaloneSpirv-Flat-06202, VUID-StandaloneSpirv-Flat-04744 #2032
Comments
The primitive_index test case can be reduced down to: @fragment
fn fs_main(@builtin(primitive_index) index: u32) -> @location(0) vec4<f32> {
return vec4<f32>(0.0, 0.0, 0.0, 0.0);
}
The issue appears to be with what naga generates for the argument |
Inserting I tested that using:
then edited the spvtext file and validated it with:
|
Moving the investigation of the water example to #2036. |
I got some background on what's going on here. These are rules that have long been in the Vulkan spec, but the validation layers and So it's just coincidence that we were getting away with it before, and we can expect more changes in the future raising the standard of the actual validation tools closer to the spec. |
Using naga e7ddd35 to compile
wgpu
test and example shaders to SPIR-V produces code that fails the standalone validation rulesVUID-StandaloneSpirv-Flat-06202
andVUID-StandaloneSpirv-Flat-04744
.For example:
The text was updated successfully, but these errors were encountered: