Commit Graph

8 Commits

Author SHA1 Message Date
137dcfbb88 Reject incomplete and non-finite computed I/J frames 2026-11-23 01:53:09 +01:00
161fdf545a fix(test): verify the barycentric fixture gradient
Collapsed interpolation could satisfy the comparison between the raw and interpolated results. Use the known full-screen triangle gradient to verify their agreement is meaningful.
2026-11-22 19:53:30 +01:00
9f681772df Tests: skip ps_vcmpx_forms when fragment subgroups may run narrower than 32 (TEST-205)
On devices with minSubgroupSize under 32, vk_harness cannot pin fragment (#1318), so the
v_cmpx EXEC packing in ps_vcmpx_forms is not comparable to the 32-lane expectation.
2026-11-22 09:33:33 -03:00
1cf18b0c12 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>
2026-11-22 13:36:29 +03:00
5f9ed5f458 Skip ps_bitmask_perm when fragment shaders run narrower than 32 lanes 2026-11-22 11:00:52 +01:00
ac5dbfae74 fix(tests): reject non-finite packed interpolation readbacks
Python's maximum can ignore a NaN after a finite operand. Check every decoded result before reducing pixel errors so a broken high-half export cannot pass both GPU runners.
2026-11-22 09:54:16 +01:00
445be4daa7 test(shader): check every D16 texture sample across the frame
At the center of the test texture red and green have the same value. Exchanging the two packed halves passed that check on hardware while 3584 pixels contained the wrong colors.
2026-11-22 09:36:10 +01:00
662752cc57 run_gpu_tests: bary, gradient and WQM checks fail a NaN or short frame
abs(nan - want) > tol is False, so an all-NaN frame counted as exact, and
none of the three counted pixels, so an empty .raw passed. check.py rejects
both; these now do too, as check_pixel_const already counts pixels.
2026-11-22 12:25:11 +05:30