Skip to content

Report SGD5 stored graphics pass groups by shader chain and render-state selection - #5945

Open
kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/cached-sgd5-state-groups
Open

kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/cached-sgd5-state-groups

Conversation

@kacper-serewis

Copy link
Copy Markdown
Contributor

SHADER-SGD5-STATE-GROUPS · claim receipt

Depends on: #5207 (original per-pass export)
Depends on: #5342 (decoded state fields)

Run python -I tools/sgd5_pass_state_groups.py passes.json for aggregate counts. Add --out private.json for per-chain variants and occurrence counts. This standalone consumer leaves existing CLI and manifest contracts intact. It compares complete decoded rows, scopes empty tables to their effect, and retains database/effect/selector provenance for older exports.

Private validation on Windows used cached metadata only. Of 28,797 exported passes, 22,374 graphics occurrences matched 16,325 shader chains, with zero chain differences against the cached batch manifest. The older export yielded 20,150 provenance groups, with 2,083 chains spanning multiple groups. Two chains selected different depth/stencil rows within the same effect. Cross-effect provenance splits do not establish distinct state values. The cache did not include decoded bytes, so byte-value equality and differences were checked with synthetic controls.

AI-assisted. Three focused tests and three line-ending checks passed. Compileall passed. CPU only on Windows. GPU and driver unused. No game data included.

@Kev-Ball

Copy link
Copy Markdown

Ran cef44ebf on the retail Xbox 1.0.2.1 pass export regenerated with #5342. All 28,797 rows matched the legacy export on the original fields, in the same order.

Input Graphics passes Shader chains Selection groups Chains with multiple selections
Legacy selectors 22,374 16,325 20,150 2,083
Decoded state 22,374 16,325 20,115 2,063

I independently grouped each chain by complete decoded raster/depth/blend values, keeping empty tables effect-local. Exactly 20 chains consolidated: 17 lost one group each, one lost two, and two lost eight each. The other 16,305 chains retained their group counts. This confirms the decoded path actually consolidates equivalent stored selections on the retail data while preserving the graphics-pass count.

AI-assisted verification. Detailed inventories stayed local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants