You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wgsl: ldexp tests might now be incorrectly failing SwiftShader #1791
I have recently been fixing up some of the logic in the fullF32Range and fullI32Range functions, so that they generate correct/interesting values. This has uncovered cases for ldexp where SwiftShader is now being failed that I think maybe incorrect.
Lots of discussion internally with @dneto0 about this.
This is likely actually a bug in SwiftShader's implementation and a missing areas of coverage in Vulkan CTS.
So the test as-is is correct.
That being said, given that Vulkan CTS has been approving drivers with missing coverage in this corner case, WebGPU may need a spec change to say something like "if input is subnormal and result is normal then ldexp isn't defined" to deal with real world devices.
Activity
Add tests to fullI32Range
zoddicus commentedon Aug 25, 2022
Lots of discussion internally with @dneto0 about this.
This is likely actually a bug in SwiftShader's implementation and a missing areas of coverage in Vulkan CTS.
So the test as-is is correct.
That being said, given that Vulkan CTS has been approving drivers with missing coverage in this corner case, WebGPU may need a spec change to say something like "if input is subnormal and result is normal then ldexp isn't defined" to deal with real world devices.
dneto0 commentedon Aug 25, 2022
Swiftshader bug is: https://b.corp.google.com/issues/243791551https://b.corp.google.com/issues/243791551
dneto0 commentedon Aug 25, 2022
I'd like to
Add tests to fullI32Range (#1792)
zoddicus commentedon Nov 29, 2022
Looks like the SwiftShader change has landed and propagated, and the spec has been updated.