Repository navigation
Shaders: verify native two-pass recipe receipts - #3101
thehollowedone wants to merge 1 commit into
Conversation
|
CI follow-up for head I opened the separate two-line CI repair #3102. Its Windows CI and PR-description checks are green. Once that repair lands, I can rebase this warm-replay branch, rerun the clean-head smoke, and update this PR's evidence. Until then, #3101 remains draft. AI use: Codex (GPT-6.2 Sol) traced both CI logs, made and tested the separate benchmark repair, and drafted this note. |
|
Tested Exact I ran
2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes exited 0, with 2,033 cases filtered out per invocation. Not tested Real driver cache, GPU or device creation, retail startup or smoke, the base revision, benchmarks, and the full workspace suite. AI use T3 Code through the Codex harness ( |
7fe3ccd to
5ca33f2
Compare
928e497 to
1ddfbcd
Compare
bmjask
left a comment
There was a problem hiding this comment.
Critical-review result: I found no concrete receipt-validation defect. The pass-tagged receipt identity, failed-fallback removal, v3 index, and legacy VS+GS ordering are internally consistent.
The branch currently conflicts. Please rebase and rerun the required exact-head validation; cache/receipt changes are especially sensitive to silently retaining stale artifacts, so include a cold-cache round trip on the rebased head.
Reviewed at 1ddfbcd with Codex (GPT-5).
1ddfbcd to
daf03fe
Compare
|
Follow-up to the rebase and cold-cache request: I rebased this PR onto On that head, the AI use: Codex (GPT-6.2 Sol) rebased and ran the checks; Codex (GPT-6.2 Astra) reviewed the receipt and retry invariants. |
|
I connected the receipt checks to actual RTX 5070 driver blobs and pixel readbacks at
Both warm processes then created the live pipelines. The native draw/readbacks returned red 1.0 and 0.5 for the respective shaders, with alpha 1.0 and zero green/blue. The stock no-dispatch clear and legacy GS green controls also passed. One focused test passed with zero skips. I extended the native two-pass fixture, wrapped synchronous pipeline creation with the production receipt capture/add/save APIs, and reopened the production index. The fixture used shader-container hashes as its two recipe identifiers and a fixed window count; it bypasses the preparation CLI's history key construction and scheduling. Cold refers to an empty XCL cache. When adapting the stock fixture, the phase variable must stay outside the XCL_ namespace (or be held constant) to avoid changing the settings key across child processes. AI use: OpenAI Codex adapted the test-only fixture, ran the native controls and drafted this report. |
57da016 to
efede78
Compare
|
Rebased onto current The full workspace run had 2,861 passed, 2 failed, and 51 ignored, with 24 explicit GPU skips. Both failures reproduced on clean main: the D16 result-register assertion and the mesh cache test’s “DXIL not compiled yet” result. The four new receipt/retry/classification tests passed. The PR description now has generated paired 60-second smoke blocks for those exact commits. Both exited normally with no device removals or crashes; frames were 1,662 on main and 1,665 on the PR head. The smoke uses AI use: Codex (GPT-6.2 Sol) rebased, resolved the overlap, built and tested this revision, ran the smokes, and drafted this report. |
efede78 to
ff893a2
Compare
|
Rebased and rerun on current main
The paired 60-second smoke on the RTX 3080 Ti showed 1,664 frames on main and 1,694 on this head, with 60 presents per two-second interval at the end of both runs, zero device removals or crashes, and peak commit of 15,724 MB / 15,284 MB. AI use: Codex (GPT-6.2 Sol) rebased and ran the checks; Codex (GPT-6.2 Astra) reviewed the final diff. |
|
I tested warm replay on
All four processes exited successfully with zero worker failures or skips. On this head, removing one compute file invalidated only the recipe that needed it. This test covers cache recovery in the preparation worker. I didn’t measure game startup time. I used Codex GPT-6.2 Sol to prepare the fixture, run the worker, and analyze the logs. The results were independently checked. Codex GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting. |
ff893a2 to
284cda7
Compare
|
Focused warm-replay tests on current head These tests cover complete native mesh receipts, legacy graphics-receipt revalidation, and requiring both unchanged driver files. Windows 11 build 26300; CPU-only run, no GPU test. The production worker's cold/warm/missing-file sequence was previously reported on head AI use: Codex (GPT-6.2 Sol) ran the tests; Codex (GPT-6.2 Astra) reviewed the current diff. |
The native cache writes gfx and compute-hash filenames, while the graphics receipt validator expected unused tp-ms/tp-cs names. Tag accepted files by pipeline pass, retain only receipts from a successful retry, and classify legacy console geometry shaders as two-pass. Version the graphics receipt index to invalidate old partial entries without deleting native blob caches. The new filename regression fails on the parent and passes with this change. The workspace suite and paired smoke are verified separately on the final commit. Assisted-by: Codex (GPT-6.2 Sol)
284cda7 to
01c2a85
Compare
|
Follows up #2829 and the name-based mesh receipts merged in #3495 (2308e9d). It replaces the file-name check with explicit pass roles, drops receipts from a failed heap-window attempt before the switch-form retry, and bumps the index to v3. No open PR changes AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
Part of #2829. Warm-replay receipts should defer a pipeline only after the native driver accepted every required pass and the referenced cache files still match. This change records pass roles explicitly, discards receipts from failed heap-window attempts before switch-form retry, and makes old incomplete indexes revalidate.
What is in it
warm_replay.rs: require distinct mesh and compute receipts, verify pass roles, and reject old v2 indexes.real.rsandshaders.rs: record accepted graphics, mesh, and compute blobs; discard failed-attempt receipts; classify legacy console VS+GS recipes as two-pass.README.md: document the two-file requirement.Tested
cargo build --offline --locked --workspacepassed on head01c2a85a.cargo test --workspace --no-fail-fast -- --test-threads=4: 2,892 passed, 0 failed, 51 ignored across 43 targets; 24 explicit GPU skips (22 require wave64; 2 require heap-window opt-in).cargo test --offline --locked -p xcl --lib warm_replay: 3 passed; legacy VS+GS classification: 1 passed; failed-attempt receipt cleanup: 1 passed.two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobspassed in the workspace suite.git diff --check 86e86fcb33f94fa5d0c809d9b50af7b84bf49cce..HEADpassed.Regression run
Both clean commits were built separately and run for 60 seconds on the same adapter with the same title hash.
scripts/smoke.ps1setsXCL_PREPARE=0, so these results cover launch and presentation, not warm-replay preparation.Not tested
The separate production-worker warm-cache sequence previously reported on head
ff893a2ewas not repeated on this rebased head. Startup-time benefit, a second prepared launch, AMD, Intel, and Wine were not tested.AI use
Codex (GPT-6.2 Sol) rebased the existing change, built and tested it, ran both smoke checks, and updated this description. Codex (GPT-6.2 Astra) reviewed the rebased diff.