Repository navigation
Conversation
|
Tested ba0f817 merged with main 8f208d0 on Linux/Python 3.12.16: pass Note: the branch carries two commits ( Commands (
Not run: the real shader carve (game data); the table of counts in the PR body is unverified by me. Diff read: no concern. Unpacking all payloads via |
|
Tested ba0f817 merged onto main 48ff424 on Windows 11 Pro, Intel i7-14700KF, CPython 3.11.0 (venv: pytest 9.2.0, numpy 2.4.6, Pillow 13.0.0; numpy is below the 2.5.5 pin because 2.5 needs Python 3.12), CPU only: pass.
Review note (minor): AI-assisted (Claude Code). |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
Adds tools/gbuffer_census.py, which counts declared OSG1 signatures and static exp mrt instructions across indexed PS shaders, tracking coverage for missing/unreadable containers and incomplete listings. --payload-coverage hashes each whole FSSM from fssm_unpack.unpack_all() with SHA256, reporting identified/ambiguous/unavailable counts and a histogram of distinct payloads per indexed entry. feature_scan.streams() is refactored to use the new signature_offsets() helper that raises ValueError on bad tables. tests/test_gbuffer_census.py builds synthetic DXBC/DXIL and listings to verify payload multiplicity stays independent of declared-count cohorts.
Why merge
Distinct FSSM payload coverage was invisible in the census; quantifying it prevents duplicate shader entries from being mistaken for independent G-buffer variants.
Verdict: Approve
SummaryAdds Why mergeDistinct FSSM payload coverage was invisible in the census; quantifying it prevents duplicate shader entries from being mistaken for independent G-buffer variants. Verdict: Approve |
Coordinator item BUILD-2347.
SHADER-GBUFFER-PAYLOAD-COVERAGE claim
Depends on: #5657
Review ba0f817 above #5657. Pass
--payload-coverageto the G-buffer census to add a per-cohort histogram of indexed entries per distinct whole FSSM. The census hashes every unpacked tag-0x0D payload. Multiple distinct payloads in one container count as ambiguous. Missing or unreadable identities count as unavailable. Static export observations and signatures retain their indexed-entry denominators.The full cached CPU run found 11,978 singleton identities, 55 pairs, three triples and one group of four. Each indexed PS contained one payload. An independent pass compared the unpacked bytes with each cached FSSM sidecar and reproduced the per-cohort distinct counts. All 12,101 signatures were readable. Listing coverage was 12,000 complete and 101 partial.
Synthetic controls exercise identical payloads in different containers, a different payload, equal and conflicting repeated tags, invalid, absent and missing payloads, cohort-specific multiplicity, and equivalence of the other report fields with the default. Census, unpacker, feature scan and text line-ending tests passed, as did Python compilation and git diff --check. Windows, AMD Ryzen 5 9600X, CPU only. GPU and driver untested. AI-assisted with Codex.