Repository navigation
Conversation
…unk bounds, and packed ISG1 matching
|
The new description of Run this from the repository root at py -3.14 -I -B -c "import sys;sys.path.insert(0,'tools');import ps_interp_modes as p;u,ij=p.disasm_facts('v_add_f32 v8, v0, v1');print(u,ij,p.pair_class([],[],u,ij))"The result is The merge base has the same behavior. Please qualify the new description to state this limit. If the tool must detect direct barycentric reads, add a test through I ran AI-assisted. |
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted independent CPU comparison of d0835dd and af1decf across all 12,101 cached retail pixel shaders. All classifier fields matched per shader. Both matched #2778: 10,260 perspective-centre, 1,841 no pair, and 77,245 reads of 101,024 declared inputs. No retail shader selected a linear pair, so synthetic controls remain necessary for positive linear-pair coverage. No GPU or archive used.
|
Reviewed af1decf merged onto main de67135 on Linux (CPU only): questions What I ran: tests/test_ps_interp_modes.py 37 passed, 11 subtests on the merged tree; Neighbours run on the merged tree (python3.13, pytest 9.2.0, RunPod Linux): tests/test_ci_registration.py 11 passed (4 subtests), tests/test_docs_links.py 6 passed, tests/test_text_encoding.py 2 passed, tests/test_docs_list_items.py 4 passed. Findings:
Everything else I tried (chunk_table with offset exactly at header_end, count larger than the file, bind size 0 with resources 0) behaves correctly. No game files. |
|
Updated in
Re-verified: AI-assisted (Gemini, Antigravity); no copyrighted game files or dumps used. |
|
Tested on Windows 11 / Python 3.12.10 at head
Code read: AI-assisted review (Gemini 4 Neon). |
|
Tested 2941976 merged with main 3faac55 on Linux (WSL), Python 3.12.16: pass tests/test_ps_interp_modes.py: 38/38 pass. |
|
Verified against main 3faac55 (clean merge): compileall clean, all 38 tests in tests/test_ps_interp_modes.py pass under python -I (re-run). The chunk-table offset guard, zero-bind-size rejection, comment stripping and the linear pair classification changes behave as described. One flag for a maintainer: the ISG1 name matching change from col_matches or reg_matches to col_matches only is a semantic narrowing beyond crash-hardening — the two new tests pin the new intent, but register-only matches now stop matching. No game data; stdlib only. This branch has no CI checks reported. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested
|
|
Tested
Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
Summary
Fixes five bugs in
tools/ps_interp_modes.pyand adds regression tests intests/test_ps_interp_modes.py:header_end = 32 + 4 * countand skip chunk table offsets withoff < header_endinstead of accepting bogus chunk headers overlapping the DXBC header or chunk offset table.PSV0chunks that declareresources > 0withbind == 0viaValueError.//comment stripping (disasm_facts()): Strip//comments in addition to;comments before matchingv_interp_*instructions.kind in (0, 6, 7)withlinear_*interpolation mode) aslinear_*instead of falling through toflat_only.7 > 5 > 4precedence (linear_sample>linear_centroid>linear_center) for both noperspective inputs andSV_Position.SYSTEM_KINDSfromotherssoSV_Positionalongside system-VGPR inputs stayslinear_*.matches = col_matches(removing theor reg_matchesfallback) so disjoint component-packed rows missing fromISG1do not inherit a sibling element's semantic name.Verification
python -I -B tests/test_ps_interp_modes.py -v: 37/37 passed (7 newly added regression tests confirmed failing before the fix and passing after).ast.parsecheck ontools/ps_interp_modes.pyandtests/test_ps_interp_modes.py: passed.python -I -B tests/test_ctest_registration.py: 4/4 passed.python -I -B scripts/check_no_game_data.py: passed.git merge-tree --write-tree upstream/main HEAD,git diff --check,CRLF=0check: all clean.AI-assisted (Gemini, Antigravity); no copyrighted game files or dumps used.