gpuweb / cts

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

Add matrix overflow test cases. #3700

Closed dj2 closed 5 months ago

dj2 commented 5 months ago

This CL tests that const-eval of matric operations cause over/under flow.

Fixes: #3682


Requirements for PR author:

Requirements for reviewer sign-off:

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

dj2 commented 5 months ago

Yea, I wasn't sure if it was worth doing more, seemed like if you're const eval-ing one, you'd be doing them all.

dj2 commented 5 months ago

I extended the tests to run over all the matrix sizes. I've also added a set of tests where the overflow happens during the internal addition instead of the initial multiplication.