Repository navigation
Conversation
… and f16 pair rules The computed I/J refusals were tested only on the f32 pair in straight-line code, so 22 of the function's 115 mutants survived all 15 interpolation test files. New cases: a pair split only by a branch target, s_branch with no fallthrough, a write reaching through a taken branch only, a write two blocks back, a loop that never writes the register, a write after the pair or at the site itself, a p2 before its p1, and the f16 pair: two p2s of one p1, the partial rewritten or read (as another p2's J) between the ops, and the nearest p1 as the p2's partner. Test only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Reviewed 93dc391: ran the whole test_interp_computed_ij.py (34 OK) here and, with the PR file Recommendation: Merge |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TEST-INTERP-IJ-CFG (claim)
What and why
interp_ij_analysisintools/rdna2spirv.py(SHADER-177, computed I/J pairs) decides whichv_interp_p1/p2pairsread a barycentric pair the program computed, and refuses the ones it cannot model. Its refusals were tested on the
f32 pair in straight-line code only: with
tools/semantic_mutants.py(#734), 22 of the function's 115 mutantssurvived all 15 interpolation test files run together, and about 15 of them changed real behaviour.
This adds a
ComputedIJControlFlowclass totests/semantic/test_interp_computed_ij.pywith 12 cases:s_branchhaving nofallthrough edge;
loop that never writes the register (the walk must stop at blocks it has seen), a write after the pair, and an
interp writing its own I register (a write at the site happens after the read);
read between the ops as another p2's J (both refused), and the nearest p1 as the p2's partner.
Test only, no translator change. The
--bary-fallback(#120) and--f16-interp-fallbackrefusals are left totheir own claims.
Tested
python -m unittest discover -s tests/semantic -p test_interp_computed_ij.py: 34 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic: 471 files, 6189 tests, 0 files failed.tools/semantic_mutants.py --function interp_ij_analysisagainst the same 15 interpolation test files together(an aggregator that imports them): 109 of 115 mutants caught, was 93 of 115. The 6 left are the operand
shape checks at the top of the site scan (
len(a) < 2, theors next to it, thepartialguard) andlast + 1 < len(insns), which differ only on operands or programs the decoder never produces.No game files, no GPU (the suite runs on the CPU SPIR-V interpreter).
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.docs/design.md. (Test only.)🤖 Generated with Claude Code