upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authortroythedecoyx <199142887+troythedecoyx@users.noreply.github.com>2026-11-21 17:55:43 -0600
committertroythedecoyx <199142887+troythedecoyx@users.noreply.github.com>2026-11-21 19:22:13 -0600
commitb92801178b57a034209da51e09d1f304cfd13131 (patch)
tree29774c0d62d74c2aa5feb2922cc264fdac9e1b9e /runtime/test/gameinput_test.cpp
parent95ab84432d15eb05a2884e1799d673f33a7cd226 (diff)
GPU tests: run #300's cs_cvt_f32_sat on every input through VKC_SGPRS
cs_cvt_f32_sat (#300) takes its binary32 input in s4, so neither runner ran it. Now both do: one dispatch per input of tests/semantic/test_float_to_int.py (check.CVT_F32_SAT_CASES), each judged on both words (v_cvt_u32_f32 in out[0], v_cvt_i32_f32 in out[1]). - check.cvt_f32_sat_test() and the run_gpu_tests.py branch report "16/16 inputs exact", or how many were wrong and the first one. - tests/test_shader_checks.py: the fake device answers from the word in VKC_SGPRS; every input must be sent, one wrong input must fail and be named, and the table must equal the interpreter test's CASES. On NVIDIA this checks the fixed translation, but it cannot catch the old bug: with the translator from before #300 (273e53c^1) the RTX 4060 Ti also gives 16/16, since SPIR-V leaves an out-of-range conversion undefined and this hardware saturates anyway. A driver that does not (@EchoTD's RADV case on #300, constant inputs) is where it can fail; tests/semantic/test_float_to_int.py pins the rule itself. AI-assisted (Claude Code). Tested on NVIDIA GeForce RTX 4060 Ti (Ada, subgroup 32), driver 32.0.16.2124, Windows 11, on main d937b7f: run_gpu_tests.py cs_cvt_f32_sat "16/16 inputs exact" natively and with LEONIDA_W64_EMULATE=1; check.py cs_cvt_f32_sat ok; tests/test_shader_checks.py 18/18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions