Skip to content

Weight Vulkan geometry pipeline creation by stored SGD5 pass occurrences - #5923

Open
kacper-serewis wants to merge 2 commits into
ItsNotRexed:mainfrom
kacper-serewis:feat/join-gpu-pipeline-results
Open

kacper-serewis wants to merge 2 commits into
ItsNotRexed:mainfrom
kacper-serewis:feat/join-gpu-pipeline-results

Conversation

@kacper-serewis

@kacper-serewis kacper-serewis commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Coordination item BUILD-1912.

Claimed as SHADER-SGD5-GPU-OCCURRENCES in the coordination board.

Depends on: #2366 (Vulkan checker with real partners)
Depends on: #5207 (stored pass export)
Depends on: #5717 (shared pass identity and counting helpers, stack parent)

Run python -I tools/sgd5_geometry_creation.py passes.json spirv --checker path/to/vk_pipeline_check. Each distinct stored VS/GS/PS triple gets one checker manifest row. The summary weights the observed outcomes by stored pass occurrences. The optional private report records each triple, its multiplicity, and its outcome. Missing modules, missing index entries, module failures, skips and Vulkan pipeline failures have distinct statuses. Partial, duplicate or unexpected results are errors.

Validation. On native Windows with NVIDIA GeForce RTX 5070 driver 616.56, the unmodified #2366 checker at e03d163 skipped all 301 distinct cached triples (364 occurrences) from translation 5e576db. The checker predates recognition of the translator's FP16 denormal-preservation requirement. All required module files were present. These results measure the creation checker, with no draw commands or authored render-state validation.

A second private run built the same checker with the two-line device-property check from main commit a094bd2. With the same modules, driver, and device, Vulkan created 301/301 pipelines covering 364/364 stored occurrences. All 903 stage-module creations succeeded. There were zero missing modules, pipeline failures or skips. Each pipeline outcome was joined back by manifest identity and weighted against the stored pass export. The translated modules and their metadata were unchanged.

The synthetic weighted-outcome tests and the existing stored-pass summary, CI registration, docs links, text line endings and compileall checks passed. All eight #2366 checker tests passed with the native executable. Only aggregate counts are published. AI-assisted with Codex.

@Kev-Ball

Copy link
Copy Markdown

Verified the weighted outcomes at 8a772e78 on CachyOS, RTX 3080 Ti, NVIDIA 620.73.04 (subgroup 32). I used the unmodified #2366 checker e03d1639 for both runs. I translated the same 691 participating retail stage modules with 5e576dbe in each configuration. All 691 passed spirv-val in each run.

Translation Distinct VS/GS/PS triples Stored occurrences Checker outcome
Default float controls 301 364 All skipped with vs: unknown float control shaderDenormPreserveFloat16
--no-float-controls 301 364 All created, zero failures or skips

I compared the two private reports by VS/GS/PS identity and multiplicity. All 301 entries matched across runs. This exercises both the skipped and created paths of the stock checker on Ampere. The alternate translation relaxes float controls. The test measured pipeline creation only and made no draw or numerical comparison.

AI-assisted. Only aggregate results are published.

@memorypressure

Copy link
Copy Markdown

Verified on main 561b65a: merges clean despite an 1800-commit-old base, both new suites genuinely run their tools (test_sgd5_geometry_creation 2, test_sgd5_pass_link_summary 2), the link-summary half matches shader_link_check's real version-1 report format, and the writer pins newline="utf-8"/"\n" correctly. Two reviewer notes: the geometry half drives vk_pipeline_check --graphics-manifest, and that flag exists only in open PR #2366 — main's vk_pipeline_check.cpp has zero occurrences (verified, #2366's diff has 8) — so this tool is inert until #2366 lands; and the new doc section tells users to run tools/sgd5_pass_pipelines.py, which exists in neither this PR nor main. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

Reviewed change in PR #5923: Weight Vulkan geometry pipeline creation by stored SGD5 pass occurrences.

Scope: docs/pipeline_check.md, tests/test_sgd5_geometry_creation.py, tests/test_sgd5_pass_link_summary.py, +2 more
Diff: +397 / -0 across 5 file(s).

The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.

Reviewed by shayderrr via automated batch review.

@shayderrr

Copy link
Copy Markdown
Collaborator

Thanks @kacper-serewis - I went through Weight Vulkan geometry pipeline creation by stored SGD5 pass occurrences and the diff around docs/pipeline_check.md. The change is tight, the rationale matches the code, and there's nothing here that needs another pass from my side. Approved and squash-merging it into main now. Nice work.

@LukeOsland1

Copy link
Copy Markdown

Independent hardware check of 8a772e78 on Windows 11 Home build 26300, NVIDIA GeForce RTX 4070 Ti SUPER, driver 610.88. The checker identified the requested device and reported subgroup size 32 in both runs.

I exported the stored passes from my local Xbox Series 1.0.2.1 package with #5207 at a4a87ba, translated the same 691 participating VS/GS/PS modules at 5e576dbe (LLVM 22.1.8), and ran this PR’s geometry-creation tool against the unmodified #2366 checker at e03d1639. The two translations differed only by the float-controls flag.

Translation Modules passing spirv-val Distinct pipelines created Skipped Failed Stored pass occurrences created
Default float controls 691/691 0/301 301 0 0/364
--no-float-controls 691/691 301/301 0 0 364/364

All 301 default skips had the same checker reason, vs: unknown float control shaderDenormPreserveFloat16. I compared the two private reports by stage triple and occurrence count. All 301 matched. This reproduces the Linux RTX 3080 Ti comparison on Windows Ada. The relaxed run establishes Vulkan pipeline creation only. Draw output and numerical equivalence were outside this check.

AI-assisted with Codex.

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.

5 participants