Skip to content

Count stored SGD5 pass occurrences affected by batch link results - #5717

Open
kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/join-pass-occurrences
Open

kacper-serewis wants to merge 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/join-pass-occurrences

Conversation

@kacper-serewis

Copy link
Copy Markdown
Contributor

First claim in coordination issue #5581.

Depends on: #5207 (producer of the stored pass export).

The new standalone Python tool joins a batch report to its own manifest by name, then to stored passes by the complete ordered stage, shader stem and entry point. It counts outcomes and individual diagnostic kinds once per distinct chain and weighted by pass multiplicity. Compute, no-PS, unsupported, absent manifest entries and missing results have separate buckets. The docs cover the exact-manifest requirement and the export denominator.

Private cached validation on Windows, CPU only. Both reports covered 301 distinct VS+GS+PS chains across 364 stored occurrences. On 3faac55 all were incompatible, with 597 missing-output diagnostics or 720 weighted by occurrence. On 5e576db all were compatible with zero diagnostics. The other 22,010 graphics rows were outside the triple-only manifest, 2,863 were compute and 3,560 lacked a PS. Together these account for all 28,797 exported rows. Inputs were existing local JSON files. No raw package, GPU or driver was used.

Tests. The new standalone CLI tests cover multiplicity, repeated diagnostics, shuffled results, swapped stage roles, entry points, unsupported chains, absent results and ambiguous inputs. They passed, along with test_shader_link_check, test_docs_links, test_ci_registration, test_text_write_line_endings and compileall over make_game.py, tools and tests.

AI-assisted with Codex.

@Kev-Ball

Copy link
Copy Markdown

At 6ee7dcac, the full graphics manifest resolves all 22,010 pass occurrences that were outside the triple-only manifest in the PR description. They account for 16,024 distinct compatible pipelines (12,221 MS+PS and 3,803 VS+PS).

I regenerated the pass export from my Xbox 1.0.2.1 copy with the #5207 producer. The regenerated manifest was byte-identical to the one used for my two cached #5207 batch reports (translator 690b9711, wave64 emulation, optimization off/on). The two summaries were byte-identical. Both counted 301 incompatible VS+GS+PS chains over 364 occurrences, with 597 missing-output diagnostics, or 720 weighted by occurrence. The 2,863 compute and 3,560 no-PS occurrences account for the rest of the 28,797 exported rows. No missing-manifest or missing-result entries. I independently joined the graphics rows by stage and stem and checked the weighted totals against the source report.

CPU-only on CachyOS, static linkage. AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 6ee7dcac (3 files, +209). New tools/sgd5_pass_link_summary.py, its synthetic test, and a docs section.

Commands:

  • python -I -m pytest tests/test_sgd5_pass_link_summary.py -q -> 2 passed
  • python -I -m pytest tests/test_shader_link_check.py tests/test_docs_links.py tests/test_ci_registration.py tests/test_text_write_line_endings.py -q -> 65 passed, 24 subtests
  • git diff --check -> clean

The join keys on (stage, stem, entry) and rejects ambiguous manifests, duplicate/unknown report names, duplicate problems and malformed pass rows (exit 2). Multiplicity and repeated diagnostics are asserted exactly.

Dependency: body says it depends on #5207 (open, mergeable). #5207's head is not in this branch, so the tool and tests stand alone; the documented workflow only works once #5207's --passes exporter lands. The 28,797-row private-data validation is unverified here.

Verdict: pass; land after #5207 for the usable workflow.

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.

3 participants