Repository navigation
SHADER-181: update pixel input counts after packed-mask correction - #2778
kacper-serewis wants to merge 2 commits into
Conversation
|
Tested on Linux (WSL2 Ubuntu, Python 3.12) and native Windows 11 (Python 3.13.1), CPU only: pass. Docs-only (one row of docs/design.md), so there are no tests or negative control. Merges cleanly with main on both OSes; trial merge with #2780, which edits the same file, is clean. I could not check the new corpus counts without game data. |
|
Code read of 0efaab7: the two changed counts (76,215 → 77,245 and 3,652 → 4,529 read) follow from #2735's per-mask lookup. Other numbers in the same row also depend on
Could you confirm from the same #2735 run that those are unchanged, or update them too? (The 1,030 extra read rows split 877 Constant / 153 Linear.) Merge after #2735, as the PR says. I didn't rerun the corpus. AI-assisted code read (Claude Code). |
kacper-serewis
left a comment
There was a problem hiding this comment.
Confirmed and corrected in 9185e6b. I ran both readers on all 12,101 indexed pixel shaders with a matching FSSM and disassembly for every shader. Parent 4947579 classified 10,249 as perspective-centre, seven as flat-only, four as linear-centre, and 1,841 as none. Head ef8e4a9 classified 10,260 as perspective-centre and 1,841 as none. Both counted 9,453 live non-perspective-centre inputs in 9,453 shaders. The old four-shader exception no longer follows from this census, so I removed it in both places. Windows CPU, AI-assisted. All 26 interpolation-mode tests passed.
99342e6 to
a2de1dd
Compare
# Conflicts: # docs/design.md
# Conflicts: # docs/design.md
Preserve the adjacent p10/p20 contract and remove superseded read counts and the unsupported four-shader position inference. The CPU recount of all 12,101 cached pixel shaders reproduces the saved aggregate.
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 436587289 on Windows 11: test_docs_design_rows.py 2 OK; git diff --check clean.
The SHADER-181 row's self-contradiction is resolved: "every interpolated generic pixel input" is now qualified, the duplicated mid-row census sentence and the "101,024 declared / 76,215 read" fragment are gone, "at most one barycentric pair" replaces the absolute "one", the SV_Position-delivery sentence no longer claims a measurement the census does not make, and the residual list drops the "4 linear-pair position shaders" (which contradicted SV_Position being outside the census). metadata-only change; no product code. No blocking issue.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/design.md
|
Tested 4365872 on AMD Radeon RX 6800 (RDNA2, discrete, gfx1030), AMD 26.8.1 (Windows 32.0.21045.5002), Windows 11 Pro 25H2 (build 26200), MSVC 14.44, RelWithDebInfo: pass.
No game files. AI-assisted (Claude Code). |
|
Tested ffa9144 on Linux, Python 3.12.16: pass
|
SHADER-181 / PROC-130. Continuation claim. Original claim.
Depends on: #2440 (merged as
da958c82).The saved census with the merged packed-mask reader confirms 77,245 read inputs among 101,024 declared inputs, including 4,529 Constant generic inputs and 345 front-face inputs. Across 12,101 pixel shaders, 10,260 classify as perspective-centre and 1,841 use no pair. The census measures input classification. Hardware delivery of SV_Position remains unverified by this measurement.
The change removes the superseded census block and both references to the old four-shader linear-pair classification from the SHADER-181 row in
docs/design.md.AI-assisted. On Windows, 20 documentation tests, 4 design contract row tests and 30 pixel interpolation tests passed. The one-row diff against main passed
git diff --check. Verification reused the saved aggregate without a new corpus scan or archive access. GPU and driver: none used.