Tests: DXBC signatures, PSV0 and shader packs #860

Open
github-bot wants to merge 1 commit from github-bot/gh-860 into main AGit
Owner

@⁠mastrr9 on GitHub · 2026-11-24 06:59 UTC · original
mastrr9:tests/shader-dxbc-pack → main · +455 −0 · 1 files · 1 commits · open

Adds a test-only suite (crates/xcl/tests/shader_dxbc_pack.rs) testing xcl::gpu::dxbc signature parsing (ISGN/ISG1/OSGN/OSG1), PSV0 metadata extraction, and shader pack serialization/round-tripping on synthetic inputs.

Tested

  • Hardware/OS: NVIDIA RTX 5080 (driver 617.42 / 32.0.16.1742), Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC debug, DXC Windows SDK 10.0.26100.0, d3d12SDKLayers.dll installed
  • Commit tested: 6060e730a85db1bfac87d136e8604aa6345dd386
  • cargo build --workspace: clean (no new warnings; only pre-existing fetch_update deprecation warning)
  • cargo test --workspace -- --test-threads=4: 722 passed, 0 failed, 41 ignored (shader_dxbc_pack: 9 passed, 0 failed, 0 ignored)
  • SKIPPED GPU tests: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64

Not tested

  • Test-only diff (crates/xcl/tests/shader_dxbc_pack.rs); no runtime code changed and no retail title run performed.

AI use

  • Authored with Claude Code (Claude Opus 5.5); reviewed, audited (removed an #[ignore] test to comply with CONTRIBUTING.md), and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5).
**@⁠mastrr9** on GitHub · 2026-11-24 06:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/860) `mastrr9:tests/shader-dxbc-pack` → `main` · +455 −0 · 1 files · 1 commits · open Adds a test-only suite (`crates/xcl/tests/shader_dxbc_pack.rs`) testing `xcl::gpu::dxbc` signature parsing (`ISGN`/`ISG1`/`OSGN`/`OSG1`), `PSV0` metadata extraction, and shader pack serialization/round-tripping on synthetic inputs. **Tested** - Hardware/OS: NVIDIA RTX 5080 (driver `617.42` / `32.0.16.1742`), Windows 11 Pro 25H2 (`26200.9974`), `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC debug, DXC Windows SDK `10.0.26100.0`, `d3d12SDKLayers.dll` installed - Commit tested: `6060e730a85db1bfac87d136e8604aa6345dd386` - `cargo build --workspace`: clean (no new warnings; only pre-existing `fetch_update` deprecation warning) - `cargo test --workspace -- --test-threads=4`: **722 passed, 0 failed, 41 ignored** (`shader_dxbc_pack`: 9 passed, 0 failed, 0 ignored) - `SKIPPED` GPU tests: `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64` **Not tested** - Test-only diff (`crates/xcl/tests/shader_dxbc_pack.rs`); no runtime code changed and no retail title run performed. **AI use** - Authored with Claude Code (Claude Opus 5.5); reviewed, audited (removed an `#[ignore]` test to comply with `CONTRIBUTING.md`), and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5).
Round-trip v0 and v1 signature elements and PSV0 runtime info at every
documented size, check every truncation and seeded mutations, and
cover pack records at the pack's end, the header checks one by one,
the size caps with real data, and inflate's size edges.

the process in Vec::with_capacity; run it on its own.

Assisted-by: Claude Code (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:34:49 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-24 08:09 UTC · original

Linux / AMD RDNA3 datapoint.

Merged state: head 6060e73 onto main 1ec4c98, clean merge.

Full suite, cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 717 passed, 7 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows - zero flakes in this lane. DXBC signature/PSV0/shader-pack tests green (717 passed).

Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.

Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross x86_64-pc-windows-gnu, XCL_NETWORK=0, release profile, --test-threads=4. My Linux rows: #42 / #718.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-24 08:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/860#issuecomment-7125791613) Linux / AMD RDNA3 datapoint. **Merged state:** head `6060e73` onto main `1ec4c98`, clean merge. **Full suite, `cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4`:** **717 passed, 7 failed, 41 ignored**. Failures = the known Wine-lane set from my #42 rows - zero flakes in this lane. DXBC signature/PSV0/shader-pack tests green (717 passed). **Not tested:** retail titles (none here), Windows, RDNA4. Counts only, no game data. **Machine:** RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross `x86_64-pc-windows-gnu`, `XCL_NETWORK=0`, release profile, `--test-threads=4`. My Linux rows: #42 / #718. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:50 UTC · original

Empirical test report (3e08b6bb)

Hardware / environment

  • Windows x64, build 10.0.26200. The host reports an AMD CPU (family 23, model 113, stepping 0). The focused target uses CPU-only parsing and decompression. Both commands ran outside Invoke-ArcTest.ps1, with no Arc GPU mutex held.
  • rustc 1.100.0 (0ef1bc386 2026-11-09) and DXC 1.9.2609.5 (01b62ad47). Cargo used the unoptimized test profile, with debug info and incremental compilation disabled.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test executables. The compiler emitted a deprecation warning for AtomicU32::fetch_update in xgameruntime.
  • With XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1, cargo test -p xcl --test shader_dxbc_pack -- --nocapture exited 0. The log reported 9 passed, 0 failed, 0 ignored, and 0 SKIPPED lines.

Observed behavior

  • Synthetic DXBC signatures round-tripped in both layouts, and the tests verified v1 preference, v0 fallback, and name and element boundary handling. PSV0 fixtures at 24, 36, 48, and 52 bytes yielded the expected fields for mesh, geometry, and compute stages.
  • The scanner found records through the end of the pack, including effect-qualified names. Header checks exercised the 16 MiB compressed and 64 MiB uncompressed cutoffs. Inflate returned the expected payload and rejected the tested size mismatches and invalid streams.
  • The DXBC truncation and seeded mutation cases completed without panics. In the seeded pack cases, scanned records stayed within the input and successful inflations matched the declared length.

Not tested

  • The full GPU workspace suite and game smoke runs were omitted. The focused target used synthetic data.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr860-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/860#issuecomment-7154195807) ### Empirical test report (3e08b6bb) **Hardware / environment** - Windows x64, build 10.0.26200. The host reports an AMD CPU (family 23, model 113, stepping 0). The focused target uses CPU-only parsing and decompression. Both commands ran outside `Invoke-ArcTest.ps1`, with no Arc GPU mutex held. - `rustc 1.100.0 (0ef1bc386 2026-11-09)` and DXC `1.9.2609.5 (01b62ad47)`. Cargo used the unoptimized test profile, with debug info and incremental compilation disabled. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test executables. The compiler emitted a deprecation warning for `AtomicU32::fetch_update` in `xgameruntime`. - With `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`, `cargo test -p xcl --test shader_dxbc_pack -- --nocapture` exited 0. The log reported 9 passed, 0 failed, 0 ignored, and 0 `SKIPPED` lines. **Observed behavior** - Synthetic DXBC signatures round-tripped in both layouts, and the tests verified v1 preference, v0 fallback, and name and element boundary handling. PSV0 fixtures at 24, 36, 48, and 52 bytes yielded the expected fields for mesh, geometry, and compute stages. - The scanner found records through the end of the pack, including effect-qualified names. Header checks exercised the 16 MiB compressed and 64 MiB uncompressed cutoffs. Inflate returned the expected payload and rejected the tested size mismatches and invalid streams. - The DXBC truncation and seeded mutation cases completed without panics. In the seeded pack cases, scanned records stayed within the input and successful inflations matched the declared length. **Not tested** - The full GPU workspace suite and game smoke runs were omitted. The focused target used synthetic data. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr860-focused.log` and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 10:16 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 10:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/860#issuecomment-7159474213) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/860/head:github-bot/gh-860'
git switch 'github-bot/gh-860'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-860'
git switch 'github-bot/gh-860'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-860'
git switch 'github-bot/gh-860'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-860'
git switch 'main'
git merge --squash 'github-bot/gh-860'
git switch 'main'
git merge --ff-only 'github-bot/gh-860'
git switch 'main'
git merge 'github-bot/gh-860'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.