gpuweb / cts

WebGPU Conformance Test Suite
https://gpuweb.github.io/cts/
BSD 3-Clause "New" or "Revised" License
121 stars 72 forks source link

wgsl: Add utility to help check for ambiguous overflows #3643

Closed toji closed 2 months ago

toji commented 2 months ago

Fixes #3623

Primary thing to pay attention to is the new ConstantOrOverrideValueChecker utility class (rolls off the tongue, huh?) This is performing the same quantization step as before but now has the opportunity to force a subcase to be skipped if the checked value is found to be in a range where the overflow rounding behavior is ambiguous.

If we think this is a good direction then I'll go back and update a bunch of the tests I've already completed to use the new utility class for consistency/completeness.


Requirements for PR author:

Requirements for reviewer sign-off:

When landing this PR, be sure to make any necessary issue status updates.