Commit Graph

20 Commits

Author SHA1 Message Date
56e5b9a3f0 tools/ab_control_flow.py: validate out/harness/names upfront and guard spvasm reads 2026-11-26 20:49:35 +08:00
3a84ae7aa8 tools/ab_control_flow: handle UTF-8-SIG/CRLF inputs, subprocess encoding and atomic outcomes.tsv 2026-11-25 21:10:56 +08:00
cd77fe0119 ab_control_flow: reject bool metadata, validate entries in supported_pixel_shaders, catch RecursionError 2026-11-23 22:37:12 +01:00
08c1aa634a Compare individual MRT readbacks in the control-flow A/B runner (#6707)
Squash-merged after diff review of PR #6707 - Compare individual MRT readbacks in the control-flow A/B runner
2026-11-23 10:03:29 -06:00
66f557b0c1 ab_control_flow: bad paths and missing SPIR-V tools are one-line errors, not tracebacks (#3409)
Squash-merged after diff review of PR #3409
2026-11-23 09:53:40 -06:00
3db7563f9f Merge pull request #3409 from kapitche
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:28 -05:00
782d151c47 ab_control_flow: check the index shape and read selected inputs before creating output 2026-11-22 20:32:49 -05:00
4e0fbda112 ab_control_flow: bad shaders folder, names file, output path or missing SPIR-V tools is a one-line error 2026-11-22 17:19:06 -05:00
e34b0c7b78 Merge current upstream main into sampled descriptor indexing fix 2026-11-23 08:01:46 +10:00
95e38c4e13 Merge pull request #3161 from Marco Luzzaro 2026-11-22 15:15:18 -05:00
945520f479 Merge pull request #2872 from Vonsek 2026-11-22 15:12:46 -05:00
c901fda139 Merge upstream main into sampled descriptor indexing fix 2026-11-23 06:06:06 +10:00
7d2081b635 Fail control-flow comparisons with no candidates 2026-11-22 20:33:45 +01:00
fdffac4983 Declare dynamic sampled descriptor indexing in translated SPIR-V 2026-11-23 05:08:57 +10:00
e29de14d50 fix(tests): exclude buffer atomics from control-flow A/B selection
Automatic comparison is intended for shaders that do not write memory. Returning a value does not make buffer atomics read-only.
2026-11-22 19:33:52 +01:00
7b97da4fa2 fix(tests): reject incomplete control-flow A/B readbacks
Two truncated frames could compare equal and hide a harness failure in the shader A/B report.
2026-11-22 18:11:15 +01:00
12a372a7de test(tools): add unit tests for ab_control_flow AST simplification 2026-11-22 16:23:38 +01:00
7410f5d37f glb_writer: retry a replace hit by a sharing violation; test ab_control_flow's metadata filters
Follow-ups to review points on two merged PRs.

#425 (@SourNuht): write_glb said overlapping writers all publish complete
files, but on Windows os.replace onto the same destination raises
PermissionError while another writer is replacing it. 8 threads x 40 writes
to one path failed 43-152 of 320 calls. A replace that hits PermissionError is
now retried with a short backoff (about 1.3 s in total), Windows only; a lasting
hold still raises and leaves the old file. Other errors are not retried.

#441 (@ToxicmaggotRP): the stage, binding and feature filters were never
reached by the tests (the rejected entries had no files, so they dropped out
earlier), and only dispatch-side instability was tested. Tests only; each of
those filters now fails a test when removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:22:37 +00:00
97e0b626a5 ab_control_flow.py: --count, --runs and --timeout must be at least 1
select_candidates() checks `len(picked) >= count` after appending, so
--count 0 or a negative count still picked (and ran) one shader.
--runs 0 rendered nothing and classified every shader as "dispatch form
failed to run", and --timeout 0 gave the harness no time at all. The
three options are now positive whole numbers (argparse errors before
the output folder is made), and select_candidates() refuses a count
below 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:03:07 +01:00
e2546b478d test(tools): add synthetic control-flow A/B regression coverage 2026-11-22 00:51:03 +01:00