diff options
| author | undeadhuman37 <343031842+undeadhuman37@users.noreply.github.com> | 2026-11-22 13:36:29 +0300 |
|---|---|---|
| committer | undeadhuman37 <343031842+undeadhuman37@users.noreply.github.com> | 2026-11-22 13:36:29 +0300 |
| commit | 1cf18b0c12440f87140c62c95617cad511a95b3a (patch) | |
| tree | 1647262b454616bb4e092a35cf48503e031b46f3 /runtime/src/pe_loader.cpp | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
run_gpu_tests: reject malformed or non-finite pixel readbacks (TEST-29)
662752cc made check_bary, check_grad and check_wqm fail a short or NaN
frame. The other pixel checks could still pass one:
- read_raw_rgba32f / read_raw_u32 dropped a trailing partial pixel, so a
readback ending mid-pixel still looked like a full frame; it now reads
as no frame.
- check_uniform_branch (ps_uniform_branch, ps_scc_mask32) took any frame
length and a NaN barycentric i passed both range tests.
- check_flat raised ValueError on an empty readback and could pass NaN UVs.
- check_bitmask_perm passed a frame of any length with one good pixel.
- check_clip_half let NaN through on the covered half.
All of them now go through frame_problem(). The UniformBranchCheck
fixtures repeat their rows over a full 64x64 frame instead of 3 pixels.
Tested on an RTX 4070 SUPER (Windows 11, NVIDIA 32.0.16.2101):
run_gpu_tests.py 105/133 passed, 28 skipped, 0 failed before and after
(same per-test results); with LEONIDA_W64_EMULATE=1 133/133 before and
after. tests/semantic 1178 OK; the new tests fail on the old runner.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions