XApu: honor deinterleaved output option #1715

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

@⁠hajduzsolt on GitHub · 2026-11-24 19:39 UTC · original
hajduzsolt:fix/xapu-planar-output → main · +49 −2 · 1 files · 1 commits · open

Runtime fix verified with unit tests and RX 9070 XT smoke run.

What is in it

  • Honor the XApu connect option for deinterleaved output, writing decoded stereo frames in channel order while retaining support for unaligned output buffers.
  • Add synthetic tests for option propagation, stereo and mono layouts, short output, and unaligned buffers. Addresses XCL-BT-018 in #1488.

Tested

  • Windows 11 x64, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB: cargo test -p xcl --lib xapu_ -- --test-threads=2 passed (3 passed).
  • cargo test --workspace -- --test-threads=2 passed; library tests: 811 passed, 22 ignored. Other test binaries also passed. Runtime GPU skips were not individually assessed in this run.

Regression run

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1594 (PresentX 1594)
presents per 2 s (last 3): 49 48 14
device removals: 0
crashes: 0
peak commit: 20195 MB

PR:

xcl-smoke v1
commit: c4937b383b41c9062e4ca47bb2cc80c323b86bde
gpu: AMD Radeon RX 9070 XT
title: A newer retail game
seconds: 60
exit: 0x0
frames shown: 1680 (PresentX 1681)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14837 MB

Not tested

  • Output against a real title or an independent XApu implementation; NVIDIA and Intel GPUs.

AI use

  • Codex (GPT 6.1 Terra Medium) wrote the implementation and synthetic unit tests; human review and smoke verification are pending.
**@⁠hajduzsolt** on GitHub · 2026-11-24 19:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1715) `hajduzsolt:fix/xapu-planar-output` → `main` · +49 −2 · 1 files · 1 commits · open Runtime fix verified with unit tests and RX 9070 XT smoke run. **What is in it** - Honor the XApu connect option for deinterleaved output, writing decoded stereo frames in channel order while retaining support for unaligned output buffers. - Add synthetic tests for option propagation, stereo and mono layouts, short output, and unaligned buffers. Addresses XCL-BT-018 in #1488. **Tested** - Windows 11 x64, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB: `cargo test -p xcl --lib xapu_ -- --test-threads=2` passed (3 passed). - `cargo test --workspace -- --test-threads=2` passed; library tests: 811 passed, 22 ignored. Other test binaries also passed. Runtime GPU skips were not individually assessed in this run. **Regression run** main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1594 (PresentX 1594) presents per 2 s (last 3): 49 48 14 device removals: 0 crashes: 0 peak commit: 20195 MB ``` PR: ``` xcl-smoke v1 commit: c4937b383b41c9062e4ca47bb2cc80c323b86bde gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1680 (PresentX 1681) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14837 MB ``` **Not tested** - Output against a real title or an independent XApu implementation; NVIDIA and Intel GPUs. **AI use** - Codex (GPT 6.1 Terra Medium) wrote the implementation and synthetic unit tests; human review and smoke verification are pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:29 +00:00
Author
Owner

@⁠frenziedcoder on GitHub · 2026-11-24 21:54 UTC · original

NVIDIA test report for c4937b3: the NVIDIA run the description lists as not tested. Full suite green, the PR's 2 own tests pass, and a clean smoke pair (1649 vs 1653 frames).

Tested

  • NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head c4937b383b41c9062e4ca47bb2cc80c323b86bde, no local changes.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 (debug): 860 passed, 0 failed, 42 ignored; the PR's 2 own tests pass. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).

Regression run (scripts/smoke.ps1 -Seconds 60, release, the retail title of #505 at its start screen; XCL_PSO_PRELOAD=0 for both builds, because this machine's preload list holds the program of #1307)

base (c160d86, this PR's merge base with main):

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 5080
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1653 (PresentX 1653)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 14598 MB

this PR:

xcl-smoke v1
commit: c4937b383b41c9062e4ca47bb2cc80c323b86bde
gpu: NVIDIA GeForce RTX 5080
title: RetailTitle
seconds: 60
exit: 0x0
frames shown: 1649 (PresentX 1649)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14600 MB

Not tested: whether this title asks for the deinterleaved layout (its start screen decodes Opus through xapu in both builds; I did not compare the samples); AMD.

AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.

**@⁠frenziedcoder** on GitHub · 2026-11-24 21:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/1715#issuecomment-7145550171) **NVIDIA test report for `c4937b3`: the NVIDIA run the description lists as not tested. Full suite green, the PR's 2 own tests pass, and a clean smoke pair (1649 vs 1653 frames).** **Tested** - NVIDIA GeForce RTX 5080 16 GB (driver 617.14, 32-lane waves), AMD Ryzen 7 9800X3D, 64 GB, Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 `stable-x86_64-pc-windows-msvc`, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact head `c4937b383b41c9062e4ca47bb2cc80c323b86bde`, no local changes. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` (debug): **860 passed, 0 failed, 42 ignored**; the PR's 2 own tests pass. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). **Regression run** (`scripts/smoke.ps1 -Seconds 60`, release, the retail title of #505 at its start screen; `XCL_PSO_PRELOAD=0` for both builds, because this machine's preload list holds the program of #1307) base (`c160d86`, this PR's merge base with `main`): ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 5080 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1653 (PresentX 1653) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 14598 MB ``` this PR: ``` xcl-smoke v1 commit: c4937b383b41c9062e4ca47bb2cc80c323b86bde gpu: NVIDIA GeForce RTX 5080 title: RetailTitle seconds: 60 exit: 0x0 frames shown: 1649 (PresentX 1649) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14600 MB ``` **Not tested:** whether this title asks for the deinterleaved layout (its start screen decodes Opus through `xapu` in both builds; I did not compare the samples); AMD. *AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.*
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 22:19 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 22:19 UTC · [original](https://github.com/xcl-dev/xcl/pull/1715#issuecomment-7146079555) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:55 UTC · original

PR #1715 — XApu deinterleaved output

Tested detached head c4937b383b41c9062e4ca47bb2cc80c323b86bde on STOR-WINLAB.

Tested

  • Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175, DXC/DXIL 1.9.2609.5, and rustc 1.100.0 (0ef1bc386 2026-11-09). The adapter reports DoublePrecisionFloatShaderOps=0 and waves of 8–32 lanes. The D3D12 debug layer is absent.
  • cargo build --workspace and cargo test --workspace --no-run succeeded with unoptimized profiles and debug info disabled. All cargo test invocations used the shared Arc lock.
  • cargo test -p xcl acphal -- --nocapture returned 9 passed, 0 failed, 0 ignored, and 0 SKIPPED lines. Both new tests passed here and in the workspace run. They verify that XApuConnect retains the layout option and that the output writer produces planar stereo in an unaligned buffer, packs partial output with zero padding, and preserves interleaved stereo and mono samples.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 exited 101. Summed across 20 result lines, including doctests, Cargo reported 842 passed, 18 failed, 42 ignored. The log contains 6 SKIPPED lines with RUST_TEST_NOCAPTURE=1. These skips count toward Cargo's pass total and are excluded from coverage.

Failures and skips

  • 17 GPU unit failures. 13 reported CreateComputePipelineState error 0x80070057, including FP64 tests. Four reported mismatches in FMA overflow, implicit-LOD sampling, FP16 high-half preservation, or wave64 pixel reductions.
  • One e2e failure. The test title's RSSetDepthBiasX check produced a blue pixel where it expected green.
  • Six explicit skips. Two lacked wave64, two lacked the D3D12 debug layer, one lacked heap windows, and one reported tiled resources tier below 2.

Not tested

Main baseline, retail-title smoke, decoded XApu playback, and other adapters. No XCL_SAMPLE_* inputs were configured. XAudio2 voice playback checks also returned early because mastering voice creation failed.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1715-suite.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1715#issuecomment-7152362992) # PR #1715 — XApu deinterleaved output Tested detached head `c4937b383b41c9062e4ca47bb2cc80c323b86bde` on STOR-WINLAB. **Tested** - Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175, DXC/DXIL 1.9.2609.5, and `rustc 1.100.0 (0ef1bc386 2026-11-09)`. The adapter reports `DoublePrecisionFloatShaderOps=0` and waves of 8–32 lanes. The D3D12 debug layer is absent. - `cargo build --workspace` and `cargo test --workspace --no-run` succeeded with unoptimized profiles and debug info disabled. All `cargo test` invocations used the shared Arc lock. - `cargo test -p xcl acphal -- --nocapture` returned 9 passed, 0 failed, 0 ignored, and 0 `SKIPPED` lines. Both new tests passed here and in the workspace run. They verify that `XApuConnect` retains the layout option and that the output writer produces planar stereo in an unaligned buffer, packs partial output with zero padding, and preserves interleaved stereo and mono samples. - `cargo test --workspace --no-fail-fast -- --test-threads=4` exited 101. Summed across 20 result lines, including doctests, Cargo reported **842 passed, 18 failed, 42 ignored**. The log contains **6 `SKIPPED` lines** with `RUST_TEST_NOCAPTURE=1`. These skips count toward Cargo's pass total and are excluded from coverage. **Failures and skips** - 17 GPU unit failures. 13 reported `CreateComputePipelineState` error `0x80070057`, including FP64 tests. Four reported mismatches in FMA overflow, implicit-LOD sampling, FP16 high-half preservation, or wave64 pixel reductions. - One e2e failure. The test title's `RSSetDepthBiasX` check produced a blue pixel where it expected green. - Six explicit skips. Two lacked wave64, two lacked the D3D12 debug layer, one lacked heap windows, and one reported tiled resources tier below 2. **Not tested** Main baseline, retail-title smoke, decoded XApu playback, and other adapters. No `XCL_SAMPLE_*` inputs were configured. XAudio2 voice playback checks also returned early because mastering voice creation failed. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1715-suite.log` and published.
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/1715/head:github-bot/gh-1715'
git switch 'github-bot/gh-1715'

Merge

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