Shaders: identify direct translation artifacts in dump manifests #2543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2553"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T22:45:22Z.
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
b0d2fb81and failed as expected with the parent writer. SlopTart reported the missing-artifact test passed on an earlier RX 7900 XT Wine/Proton integration (merge SHA unreported); the cold GPU suite reported 165 passed and three reported baseline failures. File-lock controls · AMD reportWindows 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.9ebc4a21, ettehn reproduced the equal-size PDB swap in three fresh Windows DXC harness runs. All three accepted the wrong 5,632-byte PDB. A zero-length control triggered repair in all three. Independent reproductiond32s8_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
Conflict repair on pinned main
0fe06eb0f0, PR headb8b9044b3f. Both release builds and focused symbol regressions passed (exact DXIL/PDB and same-size PDB swap). After building the synthetic fixtures, all five e2e cases passed individually on each revision within 60 seconds each. The original parallel workspace invocation remained incomplete at the launcher. The console-mesh cache failure reproduced on main; the cross-queue wait passed individually on both. The opt-in symbol pipeline was covered by synthetic tests. Both release smokes used separate empty XCL caches and XCL_PREPARE=0 on the same RTX 4080 SUPER. OpenAI Codex reconciled the changes, ran validation, and prepared this update.Main
PR
Earlier regression evidence (historical):
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 on the repaired head, 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.
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T23:06:03Z.
Verified
76e7793dbb5ec337a0b30aa832d25f2fa2d1e5eeafter the cherry-pick. The offline checker and its tests match the original files from38cdb20fbyte-for-byte.python -B -m unittest discover -s scripts -p "test_*.py"passed 30/30. All 12 two-manifest CLI cases passed again: a valid second manifest was processed after an invalid first one, and none of the saved file snapshots changed. This verifies the adopted offline checker. I did not execute XCL’s Rust dump writer or load a retail pack. Windows 11, Core i7-13700, Python 3.14.3. OpenAI Codex (GPT-6) ran the checks.Earlier verification
I prepared an offline artifact checker and tests on
effef6719d431ac360ce9d6f46c55e87b1bd486afor the success/error checks listed in this PR. Runpython -B scripts/verify_shader_dump.py FILE.manifest.jsonon a saved dump. It reads the sibling guest file and the result selected by the manifest, recomputes the FNV-1a hashes, and compares a rejected translation's UTF-8 error bytes exactly. It also accepts multiple manifests and returns a failure status if any comparison fails.I ran 12 two-manifest CLI cases using synthetic files, including a 131,073-byte binary guest with independently computed hash
9fd6a807c893b7df. Both outcome types passed. The ten mismatch, missing-file/field, schema and malformed-JSON cases returned 1, still processed the following valid manifest and left all files byte-identical. A rejection with an old DXIL file present selected the error file.python -B -m unittest discover -s scripts -p "test_*.py"passed all 30 tests, including five for the checker.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
b0d2fb814b92148710d0f91e590d6c1f9fe26cd2following the writer change. With unchanged guest/DXIL files and a directory blocking the error-file path, a retained old manifest still verified. After I removed that manifest to represent an interrupted replacement, the CLI returned 1 and still verified a second intact bundle. Publishing a new error manifest selected its exact error text even with the old DXIL present. The verifier left all three fixture states unchanged.I ran
python -B scripts/verify_shader_dump.py sample.manifest.json other.manifest.jsonon those synthetic states, reran the 12 earlier CLI cases, and ranpython -B -m unittest discover -s scripts -p "test_*.py"(30 passed). Windows 11 build 26100, Core i7-13700, Python 3.14.3. OpenAI Codex (GPT-6) ran these checks. I constructed the file states directly. The native Rust writer regression and paired retail smoke were outside this run.Offline verifier retest on
9ebc4a21e5442515a8fc6546d903928181dcd1f7The direct-dump verifier and its tests are byte-identical to
b0d2fb81. All five focused Python tests passed. I reran the 12 two-manifest CLI cases and the three cases for retaining, invalidating and replacing a manifest. The verifier processed the second valid manifest after an error and preserved the fixture files in every case. OpenAI Codex (GPT-6) ran these CPU-only checks on Windows 11 with synthetic direct-DXIL bundles. The new DXC/PDB path and retail execution were outside this run.The PR description check requests a clean
xcl-smokeblock for9ebc4a21e544. The paired retail report in the description covers the previous headb0d2fb81.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T23:06:57Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T23:39:21Z.
Review: COMMENTED
No description provided.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T00:04:44Z.
Review: COMMENTED
No description provided.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T23:39:21Z.
Code review location:
crates/xcl/src/shaders.rs; line 2378The manifest is written even if the earlier
dump("guest.bin", ...)or DXIL/error dump failed; that closure discards eachwriteerror. In that case this new record can advertise hashes for artifacts that were not saved, and the run gives no immediate clue which file failed. Could the artifact writes return/report their errors (or record which artifacts were persisted) before emitting the manifest? A small test can make one sibling path unwritable while allowing the manifest write and assert the failure is visible.Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T00:04:44Z.
Code review location:
crates/xcl/src/shaders.rs; line 2378Addressed in
b6bd0c0. The requiredguest.binand DXIL/error artifact writes now return their errors and complete before the manifest is written. A failed sibling write reports its exact path and prevents publication of the manifest.I also added
direct_dump_does_not_publish_a_manifest_for_a_missing_artifact, which makessample.guest.binunwritable and verifies that the error is visible and neither the result artifact nor manifest is created. The Windows MSVC-target test build passes.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T01:36:30Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T05:13:30Z.
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted run of
direct_dump_does_not_publish_a_manifest_for_a_missing_artifact: passed.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.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T06:55:16Z.
Review: COMMENTED
Reusing a
--dumpdirectory 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.txtreturns 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
PermissionErrorand 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.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T13:01:09Z.
Fixed in
b0d2fb8.write_direct_dumpnow removes the existing manifest before replacing any sibling artifact. Failure to invalidate the manifest aborts before changing the bundle; failure of any later artifact write leaves no manifest that can authenticate the previous generation.The new
direct_dump_invalidates_an_old_manifest_before_replacing_artifactsregression reproduces the reported sequence: it writes a valid bundle, makes the next.direct.err.txtpath unwritable, runs a failing replacement, and asserts that the old manifest is gone.Checked
python3 -B -m unittest discover -s scripts -p 'test_*.py': 30 passed, 0 failed.cargo check -p xcl --tests --target x86_64-pc-windows-msvc: passed as a compile-only Linux cross-check with a local archive wrapper.git diff --check: passed.Not tested
AI use
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T20:54:14Z.
XCL PR #2553 Windows test report
The 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
MicrosoftGame.config. PR #2553Machine and revisions
26100.9711, Intel Core i9-14900KF (24 cores, 32 logical processors), 64 GiB RAM installed.617.14(Windows driver32.0.16.1714).1.100.0 (0ef1bc386 2026-11-09), targetx86_64-pc-windows-msvc, Cargo1.100.0, MSVC linker14.44.35230.0, Windows SDK libraries10.0.26100.9457, Python3.12.14.v1.9.2609. Thedxc.exe,dxcompiler.dll, anddxil.dllfile versions were all1.9.2609.5. Tests and smoke attempts used the sameXCL_DXC_DIRsetting.8b957bec6f82495aec940944c6bf47faa02db590b0d2fb814b92148710d0f91e590d6c1f9fe26cd2Tested
cargo build --workspace/ devcargo test --workspace --no-fail-fast -- --test-threads=4/ testcargo test -p xcl --lib shaders::tests::direct_dump_invalidates_an_old_manifest_before_replacing_artifacts -- --exact/ testpython -B -m unittest discover -s scripts -p "test_*.py" -vgit diff --checkcargo build --release -p xcl/ releaseExplicit Rust skips
The workspace emitted 29
SKIPPEDevents. A test that skips a subcase or returns early can contribute to the harness's reported pass total. The 46 ignored tests are a separate harness count.cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)const_mask, wave64: no wave64f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))f16 arithmetic, wave64: no wave64f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))f16 packed, wave64: no wave64f32 arithmetic, wave64: no wave64f32 compares, wave64: no wave64f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))f32 conversions, wave64: no wave64f32 rounding, wave64: no wave64f32 three-source, wave64: no wave64f32 transcendentals, wave64: no wave64f64, wave64: no wave64integer arithmetic, wave64: no wave64integer carries, wave64: no wave64mask_ff0_flbit, wave64: no wave64no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))no d3d12SDKLayers.dllno heap windowsno wave64Optional retail fixtures for the workspace suite were unset. It logged eight early returns for
XCL_SAMPLE_RPFand one each forXCL_SAMPLE_AWCandXCL_SAMPLE_TTPF. It also logged one additional heap-window check skipped and two subcases skipped because the PC pipeline was a mesh shader.Failures and main comparisons
libudis86-sysmissing-header error. After setting the include path, the builds succeeded and the PR workspace and focused Rust runs had zero test failures.Regression run
PowerShell confirmed the local title directory exists. Each worktree's full
git status --porcelainwas empty immediately before its ownscripts/smoke.ps1ran against its own release binary, main first. Both attempts requested 60 seconds against the same title, with networking disabled, no scripted input, and separate fresh XCL data, save, DXIL cache, temporary, and output directories. No system-wide cache reset was performed.xcl-smokeblock. The script stopped because the launcher printed no log path. A separate invocation of the same release binary returned exit code2and confirmed the configured executable was missing.xcl-smokeblock. The script stopped for the same reason. Its release binary also returned exit code2and confirmed the configured executable was missing.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 dump
The PR release binary ran
xcl shaders <pack> --direct --sample 8 --seed 1 --threads 1 --dump <private-dir>against a local RPF9 shader pack and exited0. Eight sampled records yielded five translated programs and three programs above the CLI's 16,384-byte limit. All five generated manifests passed individualverify_shader_dump.pyinvocations with exit code0and the resultguest and translated DXIL match. This selection yielded zero rejected translations, so retail rejected-bundle verification remains untested. The Python suite exercised the rejected-bundle verifier with fixtures.AI use
OpenAI Codex (GPT-6) ran the local checks and drafted this report. Raw logs and shader artifacts stayed local.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T21:08:04Z.
I forgot to put the .exe at the right place - rerunning the smoke tests.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T23:21:44Z.
XCL PR #2553 Windows test report
The 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
26100.9711, Intel Core i9-14900KF (24 cores, 32 logical processors), 64 GiB RAM installed.617.14(Windows driver32.0.16.1714).1.100.0 (0ef1bc386 2026-11-09), targetx86_64-pc-windows-msvc, Cargo1.100.0, MSVC linker14.44.35230.0, Windows SDK libraries10.0.26100.9457, Python3.12.14.v1.9.2609. Thedxc.exe,dxcompiler.dll, anddxil.dllfile versions were all1.9.2609.5. Tests and smoke attempts used the sameXCL_DXC_DIRsetting.8b957bec6f82495aec940944c6bf47faa02db590b0d2fb814b92148710d0f91e590d6c1f9fe26cd2Tested
cargo build --workspace/ devcargo test --workspace --no-fail-fast -- --test-threads=4/ testcargo test -p xcl --lib shaders::tests::direct_dump_invalidates_an_old_manifest_before_replacing_artifacts -- --exact/ testpython -B -m unittest discover -s scripts -p "test_*.py" -vgit diff --checkcargo build --release -p xcl/ releaseExplicit Rust skips
The workspace emitted 29
SKIPPEDevents. A test that skips a subcase or returns early can contribute to the harness's reported pass total. The 46 ignored tests are a separate harness count.cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)const_mask, wave64: no wave64f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))f16 arithmetic, wave64: no wave64f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))f16 packed, wave64: no wave64f32 arithmetic, wave64: no wave64f32 compares, wave64: no wave64f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))f32 conversions, wave64: no wave64f32 rounding, wave64: no wave64f32 three-source, wave64: no wave64f32 transcendentals, wave64: no wave64f64, wave64: no wave64integer arithmetic, wave64: no wave64integer carries, wave64: no wave64mask_ff0_flbit, wave64: no wave64no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))no d3d12SDKLayers.dllno heap windowsno wave64Optional retail fixtures for the workspace suite were unset. It logged eight early returns for
XCL_SAMPLE_RPFand one each forXCL_SAMPLE_AWCandXCL_SAMPLE_TTPF. It also logged one additional heap-window check skipped and two subcases skipped because the PC pipeline was a mesh shader.Failures and main comparisons
libudis86-sysmissing-header error. After setting the include path, the builds succeeded and the PR workspace and focused Rust runs had zero test failures.D3D12 debug-layer follow-up
Both revisions used the matching x64 core and debug DLLs from Microsoft.Direct3D.D3D12
1.620.2, file version1.620.2.0.20261106.5. The exactuploads_start_from_each_subresources_statererun selected one test per revision. Each harness recorded a pass with one explicitSKIPPEDevent for the same reason:no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)). These follow-ups are excluded from the workspace totals above.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
0, and completed the fixture. Debug-layer activation returned0x887A002Don both revisions, leaving debug validation untested. Microsoft requires the Windows Graphics Tools optional feature in addition to the redistributable SDK. Microsoft D3D12 redistributable specificationRegression run
PowerShell confirmed that the configured title executable was present. Main ran first, followed by the PR. Each worktree passed a full
git status --porcelaincheck immediately before running its own release binary and smoke script. Both runs requested 60 seconds on the same title with networking disabled, no scripted input, the same DXC and Agility SDK settings, and the retail debug layer off. Each started with its own empty XCL data, save, DXIL cache, temporary, and output directories. System-wide driver caches were left in place.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.
Main
The 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
xcl-smokeblock. The 60-second guest run never started.PR
First attempt with default timeouts
Main 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 dump
The PR release binary ran
xcl shaders <pack> --direct --sample 8 --seed 1 --threads 1 --dump <private-dir>against a local RPF9 shader pack and exited0. Eight sampled records yielded five translated programs and three programs above the CLI's 16,384-byte limit. All five generated manifests passed individualverify_shader_dump.pyinvocations with exit code0and the resultguest and translated DXIL match. This selection yielded zero rejected translations, so retail rejected-bundle verification remains untested. The Python suite exercised the rejected-bundle verifier with fixtures.AI use
OpenAI 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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-26T23:34:02Z.
Tested: Exact clean head
b0d2fb814b92148710d0f91e590d6c1f9fe26cd2, Windows 11 26200.9974, Ryzen 7 3800X, Rust 1.100.0 MSVC and Python 3.14.3.cargo test -p xcl --lib shaders::tests::direct_dump_ -- --nocapture: 2 passed.python -B -m unittest discover -s scripts -p 'test_*.py': 30 passed. A standalone synthetic harness compiled the checked-in writer and called the verifier CLI (cargo test --offline --manifest-path <harness>/Cargo.toml -- --nocapture). At head, both Windows file-lock tests passed. With the parent writer (76e7793dbb5ec337a0b30aa832d25f2fa2d1e5ee), both failed as expected. Zero skips.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 (
gpt-6.2-sol) wrote the probe, ran and independently reran the checks, and drafted the report.Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-27T09:07:48Z.
XCL PR #2553 Windows test report
The 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
26100.9711, Intel Core i9-14900KF (24 cores, 32 logical processors), 64 GiB RAM installed.617.14(Windows driver32.0.16.1714).1.100.0 (0ef1bc386 2026-11-09), targetx86_64-pc-windows-msvc, Cargo1.100.0, MSVC linker14.44.35230.0, Windows SDK libraries10.0.26100.9457, Python3.12.14.v1.9.2609. Thedxc.exe,dxcompiler.dll, anddxil.dllfile versions were all1.9.2609.5. Tests and smoke attempts used the sameXCL_DXC_DIRsetting.8b957bec6f82495aec940944c6bf47faa02db590b0d2fb814b92148710d0f91e590d6c1f9fe26cd2Tested
cargo build --workspace/ devcargo test --workspace --no-fail-fast -- --test-threads=4/ testcargo test -p xcl --lib shaders::tests::direct_dump_invalidates_an_old_manifest_before_replacing_artifacts -- --exact/ testpython -B -m unittest discover -s scripts -p "test_*.py" -vgit diff --checkcargo build --release -p xcl/ releaseExplicit Rust skips
The workspace emitted 29
SKIPPEDevents. A test that skips a subcase or returns early can contribute to the harness's reported pass total. The 46 ignored tests are a separate harness count.cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)const_mask, wave64: no wave64f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))f16 arithmetic, wave64: no wave64f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))f16 packed, wave64: no wave64f32 arithmetic, wave64: no wave64f32 compares, wave64: no wave64f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))f32 conversions, wave64: no wave64f32 rounding, wave64: no wave64f32 three-source, wave64: no wave64f32 transcendentals, wave64: no wave64f64, wave64: no wave64integer arithmetic, wave64: no wave64integer carries, wave64: no wave64mask_ff0_flbit, wave64: no wave64no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))no d3d12SDKLayers.dllno heap windowsno wave64Optional retail fixtures for the workspace suite were unset. It logged eight early returns for
XCL_SAMPLE_RPFand one each forXCL_SAMPLE_AWCandXCL_SAMPLE_TTPF. It also logged one additional heap-window check skipped and two subcases skipped because the PC pipeline was a mesh shader.Failures and main comparisons
libudis86-sysmissing-header error. After setting the include path, the builds succeeded and the PR workspace and focused Rust runs had zero test failures.D3D12 debug-layer follow-up
Both revisions used the matching x64 core and debug DLLs from Microsoft.Direct3D.D3D12
1.620.2, file version1.620.2.0.20261106.5. The exactuploads_start_from_each_subresources_statererun selected one test per revision. Each harness recorded a pass with one explicitSKIPPEDevent for the same reason:no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)). These follow-ups are excluded from the workspace totals above.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
0, and completed the fixture. Debug-layer activation returned0x887A002Don both revisions, leaving debug validation untested. Microsoft requires the Windows Graphics Tools optional feature in addition to the redistributable SDK. Microsoft D3D12 redistributable specificationRegression run
Main 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.
Main
PR
Direct shader dump
The PR release binary ran
xcl shaders <pack> --direct --sample 8 --seed 1 --threads 1 --dump <private-dir>against a local RPF9 shader pack and exited0. Eight sampled records yielded five translated programs and three programs above the CLI's 16,384-byte limit. All five generated manifests passed individualverify_shader_dump.pyinvocations with exit code0and the resultguest and translated DXIL match. This selection yielded zero rejected translations, so retail rejected-bundle verification remains untested. The Python suite exercised the rejected-bundle verifier with fixtures.AI use
OpenAI 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.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-27T10:23:33Z.
Follow-up: opt-in local shader symbols
Added in
c8234e4.XCL_SHADER_DEBUG_DIR=<private-folder>enables full separate DXC debug information.IDxcResult, the exact HLSL compiler input, and a JSON manifest.Validation on the identical source tree before publication:
cargo build --workspace: passed.cargo test --workspace --no-fail-fast -- --test-threads=4: 1,426 passed, 0 failed, 46 ignored; all 37 harnesses completed.cargo build --release -p xcl: passed.git diff --check: passed.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.
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-27T11:28:18Z.
I checked the new DXC symbol cache at
9ebc4a21e5442515a8fc6546d903928181dcd1f7on Windows 11 26200.9974 (Rust 1.97.1 MSVC, SDK DXC/DXIL 1.8.2502.11). A standalone harness used the exactdxc.rsand thecompile_cached_inandshader_symbols_availablepaths.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
pdb_fnv64in the manifest and checking it during bundle validation restored A’s PDB byte-for-byte in all three swap tests. Clean warm hits remained hits. Manifests without the new field were refreshed on a miss. This covers synthetic CPU-side DXC/cache behavior only; no title, GPU, or workspace suite ran. I did not measure warm-hit I/O cost. AI use: OpenAI Codex (GPT-6) wrote and ran the probe, prepared the local candidate, and drafted this report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:22:20Z.
Triage (#1607) – head
b8b9044Neither part is on main: there is no
scripts/verify_shader_dump.pyand noXCL_SHADER_DEBUG_DIR. #2870 and #2871 contain this PR's first four commits (effef671..b0d2fb81) and add scripts on top, so they are stacked on it, not duplicates. #2575 is a separate DXIL inspection tool.The PR holds two features: the direct dump manifest and its verifier, and the
XCL_SHADER_DEBUG_DIRPDB bundles. Together that is 583 lines with merge commits from main. Splitting it into two rebased PRs would make it easier to review.dxc.rs:compile_withalso replacesoutput(...)with inline error handling on the default (non-debug) path.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.