KhronosGroup / OpenCL-CTS

The OpenCL Conformance Tests
Apache License 2.0
178 stars 187 forks source link

spirv_new: fix test_decorate. #1980

Closed hvdijk closed 1 week ago

hvdijk commented 3 weeks ago

test_decorate was checking for half-precision NAN incorrectly, calling cl_half_from_float where cl_half_to_float was intended, causing a wrong expected result.

test_decorate was also printing the expected and actual results reversed, printing "got -1, want 0", when our implementation already returned 0.

bashbaug commented 1 week ago

Merging as discussed in the June 25th teleconference.