Repository navigation
Shaders: identify direct translation artifacts in dump manifests - #2553
mokkamokacaffe wants to merge 7 commits into
Conversation
|
Verified Earlier verificationI prepared an offline artifact checker and tests on I ran 12 two-manifest CLI cases using synthetic files, including a 131,073-byte binary guest with independently computed hash Windows 11 26100.9711, i7-13700, Python 3.14.3. I tested the offline checker only. End-to-end generation with XCL and a shader pack remains unverified here. OpenAI Codex (GPT-6) prepared the checker and ran the tests. Rechecked the offline verifier on I ran Offline verifier retest on The direct-dump verifier and its tests are byte-identical to The PR description check requests a clean |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
Check the guest hash and the result selected by the manifest. Compare exact diagnostic bytes for rejected translations so saved artifacts can be verified without the source pack or a GPU. Assisted-by: OpenAI Codex (GPT-6)
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
luckyteagirl
left a comment
There was a problem hiding this comment.
Reusing a --dump directory can leave a manifest that still verifies after a rerun fails. The prefix is stable for the same record and program. If the first run writes DXIL and a later run produces a translation error, a failed write to .direct.err.txt returns before the old manifest is replaced. The unchanged guest and old DXIL still match that manifest.
I reproduced the file sequence on Windows by placing a directory at the error artifact path. The sibling write raised PermissionError and the exact-head verifier exited 0 with “guest and translated DXIL match.”
Could the writer invalidate the existing manifest before it starts replacing artifacts, or use separate names for each generation? A regression can seed a valid bundle, force an artifact write failure on the rerun, and check that the old manifest cannot be mistaken for its result.
Remove an existing manifest before replacing any of its sibling artifacts. A failed rerun can then leave incomplete files, but cannot make the verifier accept the previous generation as the new result. Add a two-generation regression that forces the replacement error artifact to be unwritable and checks that the old manifest is gone. Assisted-by: OpenAI Codex (GPT-6.2 Astra Ultra)
|
Fixed in
The new Checked
Not tested
AI use
|
XCL PR #2553 Windows test reportThe PR workspace build, Rust tests, Python tests, whitespace check, and shader dump verification passed. Both retail smoke attempts stopped before launch because the unpacked title was missing the executable declared in Machine and revisions
Tested
Explicit Rust skipsThe workspace emitted 29
Optional retail fixtures for the workspace suite were unset. It logged eight early returns for Failures and main comparisons
Regression runPowerShell confirmed the local title directory exists. Each worktree's full
Neither attempt reached retail gameplay. A paired 60-second performance and stability comparison is pending a complete local title. The title file list, sizes, and last-write times matched before and after testing. Direct shader dumpThe PR release binary ran AI useOpenAI Codex (GPT-6) ran the local checks and drafted this report. Raw logs and shader artifacts stayed local. |
|
I forgot to put the .exe at the right place - rerunning the smoke tests. |
XCL PR #2553 Windows test reportThe PR workspace build, Rust tests, Python tests, whitespace check, and shader dump verification passed. The PR completed two 60-second retail runs with 753 and 733 frames respectively, each with zero crashes or device removals. Main timed out during cold shader preparation on both attempts, so a retail frame or memory comparison against main is unavailable. PR #2553 Machine and revisions
Tested
Explicit Rust skipsThe workspace emitted 29
Optional retail fixtures for the workspace suite were unset. It logged eight early returns for Failures and main comparisons
D3D12 debug-layer follow-upBoth revisions used the matching x64 core and debug DLLs from Microsoft.Direct3D.D3D12 The two stock end-to-end tests check for the Windows-installed debug DLL before starting. That DLL was absent. Separate diagnostic launches using the same synthetic title exercised DRED off and on for each revision. All four loaded Agility SDK v620, exited Regression runPowerShell confirmed that the configured title executable was present. Main ran first, followed by the PR. Each worktree passed a full For the second pair, main used its supported 7,200-second startup allowance. The PR script has a fixed 120-second startup allowance. Both retained the 60-second guest-run setting. The title file list, file sizes, and last-write times matched before and after the reruns. MainThe script stopped the launcher after 7,260 seconds of wall time. Main was still preparing shaders, with 23,520 files in its private cache. The launcher printed no log path, and the stock script produced no PRFirst attempt with default timeoutsMain timed out during cold shader preparation and produced no block. The PR completed its first 60-second run with 753 frames, zero crashes, zero device removals, and 14,948 MB peak commit. PR, first attempt Direct shader dumpThe PR release binary ran AI useOpenAI Codex (GPT-6) ran the original checks. Codex (GPT-6.2 Astra) ran the retail and debug-layer follow-ups and updated this report. Raw logs and shader artifacts stayed local. |
|
Tested: Exact clean head When Windows denied deleting the old manifest, head left the old bundle untouched and the verifier still accepted it. When Windows denied the DXIL write after successful invalidation, no manifest was published and the verifier exited 1. Both retries produced valid bundles once the file handles were released. Not tested: GPU execution, full Rust workspace, retail packs, or retail smoke. AI use: T3 Code / Codex ( |
XCL PR #2553 Windows test reportThe PR workspace build, Rust tests, Python tests, whitespace check, and shader dump verification passed. The retail results below use identical starting shader caches. PR #2553 Machine and revisions
Tested
Explicit Rust skipsThe workspace emitted 29
Optional retail fixtures for the workspace suite were unset. It logged eight early returns for Failures and main comparisons
D3D12 debug-layer follow-upBoth revisions used the matching x64 core and debug DLLs from Microsoft.Direct3D.D3D12 The two stock end-to-end tests check for the Windows-installed debug DLL before starting. That DLL was absent. Separate diagnostic launches using the same synthetic title exercised DRED off and on for each revision. All four loaded Agility SDK v620, exited Regression runMain ran first, followed by the PR. Each release binary and stock smoke script ran from its own clean detached worktree. Each started with a separate copy of the same 23,520-file cache from the earlier main preparation. Relative filenames and SHA-256 digests matched before each launch. Both requested 60 seconds with fresh save and data directories, identical DXC and Agility SDK settings, networking disabled and no scripted input. Main used its maximum 86,400-second startup allowance. The PR script uses a fixed 120-second allowance. System driver caches were left in place. Title filenames, sizes and last-write times matched the pre-run snapshot. MainPRDirect shader dumpThe PR release binary ran AI useOpenAI Codex (GPT-6) ran the original checks. Codex (GPT-6.2 Astra) ran the retail and debug-layer follow-ups and updated this report. Raw logs and shader artifacts stayed local. |
Add an opt-in XCL_SHADER_DEBUG_DIR pipeline for DXC translations. Compile with full separate debug information and retain the exact stripped DXIL object, its matching PDB, the exact HLSL input, and a manifest as one local bundle. Keep the diagnostic cache separate and reject lower- and upper-level cache hits when their symbol bundle is incomplete. Include non-default DXC arguments in the symbol identity, document the private-artifact and direct-DXIL limitations, and cover exact object/PDB matching plus recovery. Tested on Windows with the full workspace suite (1,426 passed, 0 failed), a release build, and NVIDIA Nsight Aftermath shader hash/debug-name lookup. Assisted-by: OpenAI Codex (GPT-6.2 Astra)
Follow-up: opt-in local shader symbolsAdded in
Validation on the identical source tree before publication:
A new retail smoke was not run for this follow-up commit; the existing paired smoke blocks apply to the previous PR head. No shader artifacts, PDBs, title data, local paths, or raw logs were uploaded. |
|
I checked the new DXC symbol cache at Two synthetic compute shaders produced different DXIL and different PDBs of the same size (5,632 bytes). After replacing A’s PDB with B’s, all three fresh runs still reported symbols available and a disk hit for A, preserving B’s PDB. Truncating A’s PDB to zero triggered a miss and restored the correct PDB in all three runs. A local candidate recording |
Record the PDB hash with the DXIL and rebuild symbol bundles when it is missing or mismatched. Cover same-size PDB substitution and legacy manifests on both symbol lookup paths. Assisted-by: OpenAI Codex (GPT-6)
Part of #2541.
What is in it
XCL_SHADER_DEBUG_DIRpreserves the exact DXIL submitted to D3D12, the full PDB from that same DXC compilation, generated HLSL, and a manifest in a separate local cache.pdb_fnv64from the compiler’s PDB output. Both the disk cache and the DXIL-to-symbol index verify it. A swapped PDB or a legacy manifest missing the hash triggers a rebuild.Tested
Windows 11 Pro 24H2 build 26100.9711, i9-14900KF, 64 GiB RAM, RTX 4080 SUPER 16 GiB, NVIDIA 617.14, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5.
3c95cdfab8ce9bde38d19976605a0ef9c48cb267. Main baseline623d02e465a17497a757a4ce867f482b0a6c8f3b.cargo build --workspace(dev),cargo build --release -p xcl(optimized with debug information), andgit diff --checkpassed.cargo test --workspace --no-fail-fast -- --test-threads=4on the published head with standard Windows runtime settings: 1,462 passed, 0 failed, 47 ignored across 38 completed harnesses. There were 25 explicitSKIPPEDsubcases: 21 for unavailable wave64, three unsupported wave32 FP16 operations, and one for unavailable heap windows.d32s8_targets_take_their_own_size_of_video_memorywhile closing a D3D12 command list (0x80004005). Clean main reproduced the same failure in its four-thread library suite. The isolated test passed on both revisions.Regression run
Main’s existing block and the refreshed PR block used clean worktrees, separate release binaries and saves, and independently verified copies of the same 31,056-file starting cache. Both used the same retail title, GPU, DXC and Agility settings, with networking disabled and no scripted input. Symbol capture, DRED, and the D3D12 debug layer were off for both runs.
Main
PR
Not tested
Retail symbol capture, end-to-end Nsight Aftermath crash resolution, AMD or Intel GPUs, and warm-cache PDB hashing overhead. The retail sample produced no rejected translation. Rejected bundles were covered by the Python suite.
AI use
OpenAI Codex assisted with implementation, Windows testing, and drafting. OpenAI Codex (GPT-6) wrote and tested the PDB cache fix and same-size swap regression. RavenCurseBurg contributed the offline verifier and its tests.