Skip to content

XApu: honor deinterleaved output option - #1715

Open
hajduzsolt wants to merge 1 commit into
xcl-dev:mainfrom
hajduzsolt:fix/xapu-planar-output
Open

hajduzsolt wants to merge 1 commit into
xcl-dev:mainfrom
hajduzsolt:fix/xapu-planar-output

Conversation

@hajduzsolt

@hajduzsolt hajduzsolt commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

What is in it

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.

@frenziedcoder

Copy link
Copy Markdown

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

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!

@JJAutoCompare

Copy link
Copy Markdown

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.

@github-actions

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Nov 28, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head c4937b3

No open or merged PR makes the same change. Other open XApu PRs (#1283, #2041, #2700) do not touch the output layout.
The diff gives no source for reading XApuConnectInput.options & 4 as "deinterleaved" (it cites XCL-BT-018 in #1488). Main uses only bit 8 (the ready event) of that field. A reviewer has to take this bit's meaning on trust.
In write_xapu_output the planes are packed with a stride of the decoded frame count, not of the frames the buffer was sized for. That matters only if titles expect the planes at a fixed stride when a packet decodes short.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants