Tests: ID3D12GraphicsCommandList10 layout, QueryInterface and slots #84/#85 #753

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

@⁠dadnotdaddy on GitHub · 2026-11-24 04:42 UTC · original
dadnotdaddy:tests-cl10 → main · +138 −0 · 3 files · 1 commits · open

Test-only: pins down how XCL handles ID3D12GraphicsCommandList10 (work graphs: SetProgram, DispatchGraph). No runtime change.

What is in it

  • layout::tests::command_list10_matches_the_sdk: IID, parent List9, method order and slots #84/#85 (and List11 following) against the SDK's d3d12.h.
  • title_list::tests::command_list10_query_is_answered_by_the_pc_list: QI for List10 on a console list returns the PC answer (supported, or E_NOINTERFACE with a null out and no crash); #84/#85 forwarding.
  • real::command_list10_tests::title_slots_84_85_are_not_work_graph_methods: a title's slots #84/#85 reach the console methods, not SetProgram/DispatchGraph.
  • real::command_list10_tests::gpu_command_list10_is_adopted_with_its_layout: a List10-capable PC list is adopted with the List10 layout (skip_test without a device or List10).

Tested

  • RTX 2070 SUPER (driver 621.24, List10 exposed, so the GPU test ran), Ryzen 5 5500, Windows 11 26200, rustc 1.100.0, debug.
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 703 passed, 2 failed, 41 ignored. The 2 (vram::d32s8_targets_take_their_own_size_of_video_memory, e2e test_title_runs_and_game_folder_is_untouched) also fail on main in the same run here (main: 697 passed, 4 failed).

Regression run

  • None needed: test-only (no change to crates/xcl/src outside tests).

Not tested

  • AMD, Windows 10, any title.

AI use

  • Claude Code (Claude Opus 5.5): read the code paths, wrote and ran the tests.
**@⁠dadnotdaddy** on GitHub · 2026-11-24 04:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/753) `dadnotdaddy:tests-cl10` → `main` · +138 −0 · 3 files · 1 commits · open Test-only: pins down how XCL handles `ID3D12GraphicsCommandList10` (work graphs: `SetProgram`, `DispatchGraph`). No runtime change. **What is in it** - `layout::tests::command_list10_matches_the_sdk`: IID, parent List9, method order and slots #84/#85 (and List11 following) against the SDK's `d3d12.h`. - `title_list::tests::command_list10_query_is_answered_by_the_pc_list`: QI for List10 on a console list returns the PC answer (supported, or E_NOINTERFACE with a null out and no crash); #84/#85 forwarding. - `real::command_list10_tests::title_slots_84_85_are_not_work_graph_methods`: a title's slots #84/#85 reach the console methods, not SetProgram/DispatchGraph. - `real::command_list10_tests::gpu_command_list10_is_adopted_with_its_layout`: a List10-capable PC list is adopted with the List10 layout (`skip_test` without a device or List10). **Tested** - RTX 2070 SUPER (driver 621.24, List10 exposed, so the GPU test ran), Ryzen 5 5500, Windows 11 26200, rustc 1.100.0, debug. - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 703 passed, 2 failed, 41 ignored. The 2 (`vram::d32s8_targets_take_their_own_size_of_video_memory`, e2e `test_title_runs_and_game_folder_is_untouched`) also fail on `main` in the same run here (main: 697 passed, 4 failed). **Regression run** - None needed: test-only (no change to `crates/xcl/src` outside tests). **Not tested** - AMD, Windows 10, any title. **AI use** - Claude Code (Claude Opus 5.5): read the code paths, wrote and ran the tests.
The layout entry matches the Windows SDK's d3d12.h (IID, parent List9,
SetProgram #84 / DispatchGraph #85 after List9's 84 methods, List11 after
it); a console list object passes List10 QueryInterface on to the PC list
(itself out when supported, E_NOINTERFACE unchanged when not) and forwards
#84 / #85; an adopted PC list gets the List10+ layout while a title's #84 /
#85 stay the console methods (CopyResource with flags, SetPredication with
a buffer). The GPU test skips when the runtime has no List10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:31:24 +00:00
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 04:53 UTC · original

Test run of 21b9e04309874e1fa5e62ccc990fac864a8298dc on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 705 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 664 passed, 0 failed, 21 ignored
  • 0 SKIPPED; command_list10_matches_the_sdk, gpu_command_list10_is_adopted_with_its_layout, title_slots_84_85_are_not_work_graph_methods and command_list10_query_is_answered_by_the_pc_list pass, the GPU one on a real device.

Review: Test-only; it pins the List10 layout and slots #84/#85 against the SDK header. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 04:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/753#issuecomment-7122438469) Test run of `21b9e04309874e1fa5e62ccc990fac864a8298dc` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows, not Wine), Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **705 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 664 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `command_list10_matches_the_sdk`, `gpu_command_list10_is_adopted_with_its_layout`, `title_slots_84_85_are_not_work_graph_methods` and `command_list10_query_is_answered_by_the_pc_list` pass, the GPU one on a real device. **Review:** Test-only; it pins the List10 layout and slots #84/#85 against the SDK header. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 05:16 UTC · original

Test report: #753 under Wine (Linux, NVIDIA): vkd3d-proton's ID3D12GraphicsCommandList10, tests and GTA VI regression pair

Under Wine the PC command list XCL adopts is vkd3d-proton's (D3D12 on Vulkan). Its ID3D12GraphicsCommandList10 works with this PR: the new tests pass, and GTA VI runs the same as on main.

Setup

  • CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06
  • Proton Experimental experimental-11.0-20261112 (wine-11.0), vkd3d-proton v3.1 (4522cc1a) + the patch from #257, DXVK from Proton, DXC 1.9.2609, DXVK_CONFIG="dxgi.hideNvidiaGpu = False"
  • Rust 1.100.0, x86_64-pc-windows-gnu (mingw-w64-gcc 16.2.0); debug for the tests, release for the runs
  • Commits: this PR's head 21b9e04 and its base main 64b3f35

Tests (lib test binary under Wine, --test-threads=1, 2 runs each)

  • Filter command_list10: 4 passed, 0 failed, 0 ignored: command_list10_matches_the_sdk, gpu_command_list10_is_adopted_with_its_layout (ran, not skipped), title_slots_84_85_are_not_work_graph_methods, command_list10_query_is_answered_by_the_pc_list
  • Filter title_slots_84_85: 1 passed
  • XCL's line in the GPU test: D3D12.X: ID3D12GraphicsCommandList10 – 86 PC methods, 0 internal slots under the guard, +64 stubs (CommandList, PC vtable d3d12core.dll+0x5662a0)

GTA VI 1.0.2.1 (my own dump; 60 s runs with scripts/linux/smoke.sh from #257, XCL_NETWORK=0, alternating base / PR / PR / base). Every run logs the ID3D12GraphicsCommandList10 – … adoption line, so the title goes through the list the PR changes.

build frames shown removals / crashes
64b3f35 853, 969 0 / 0
21b9e04 996, 973 0 / 0

(The first main run started presenting at 30 s, the other three at 22 s; the second main run is in line with the PR's.)

xcl-smoke v1
commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 969 (PresentX 969)
presents per 2 s (last 3): 61 49 0
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: 21b9e04309874e1fa5e62ccc990fac864a8298dc
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 996 (PresentX 996)
presents per 2 s (last 3): 44 60 35
device removals: 0
crashes: 0
peak commit: 0 MB

(The second main run and the first PR run. peak commit: 0 MB is XCL reading 0 MB committed under Wine, see #257.)

Not tested

  • Windows, AMD; the rest of the suite on this branch; work graphs (slots 84/85) in a title; the picture

AI use: Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks, counts and log lines are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.

**@⁠JoaoPauluu** on GitHub · 2026-11-24 05:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/753#issuecomment-7122798242) ### Test report: #753 under Wine (Linux, NVIDIA): vkd3d-proton's `ID3D12GraphicsCommandList10`, tests and GTA VI regression pair Under Wine the PC command list XCL adopts is vkd3d-proton's (D3D12 on Vulkan). Its `ID3D12GraphicsCommandList10` works with this PR: the new tests pass, and GTA VI runs the same as on `main`. **Setup** - CachyOS, kernel 7.3.3-1-cachyos, Intel i5-10400F, 16 GB RAM, NVIDIA GeForce RTX 3060 12 GB, driver 620.70.06 - Proton Experimental `experimental-11.0-20261112` (wine-11.0), vkd3d-proton v3.1 (`4522cc1a`) + the patch from #257, DXVK from Proton, DXC 1.9.2609, `DXVK_CONFIG="dxgi.hideNvidiaGpu = False"` - Rust 1.100.0, `x86_64-pc-windows-gnu` (mingw-w64-gcc 16.2.0); debug for the tests, release for the runs - Commits: this PR's head `21b9e04` and its base `main` `64b3f35` **Tests** (lib test binary under Wine, `--test-threads=1`, 2 runs each) - Filter `command_list10`: 4 passed, 0 failed, 0 ignored: `command_list10_matches_the_sdk`, `gpu_command_list10_is_adopted_with_its_layout` (ran, not skipped), `title_slots_84_85_are_not_work_graph_methods`, `command_list10_query_is_answered_by_the_pc_list` - Filter `title_slots_84_85`: 1 passed - XCL's line in the GPU test: `D3D12.X: ID3D12GraphicsCommandList10 – 86 PC methods, 0 internal slots under the guard, +64 stubs (CommandList, PC vtable d3d12core.dll+0x5662a0)` **GTA VI 1.0.2.1** (my own dump; 60 s runs with `scripts/linux/smoke.sh` from #257, `XCL_NETWORK=0`, alternating base / PR / PR / base). Every run logs the `ID3D12GraphicsCommandList10 – …` adoption line, so the title goes through the list the PR changes. | build | frames shown | removals / crashes | |---|---|---| | `64b3f35` | 853, 969 | 0 / 0 | | `21b9e04` | 996, 973 | 0 / 0 | (The first `main` run started presenting at 30 s, the other three at 22 s; the second `main` run is in line with the PR's.) ``` xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 969 (PresentX 969) presents per 2 s (last 3): 61 49 0 device removals: 0 crashes: 0 peak commit: 0 MB ``` ``` xcl-smoke v1 commit: 21b9e04309874e1fa5e62ccc990fac864a8298dc gpu: NVIDIA GeForce RTX 3060 title: GTA6.Xbox.v1.0.2.1 seconds: 60 exit: 0x0 frames shown: 996 (PresentX 996) presents per 2 s (last 3): 44 60 35 device removals: 0 crashes: 0 peak commit: 0 MB ``` (The second `main` run and the first PR run. `peak commit: 0 MB` is XCL reading 0 MB committed under Wine, see #257.) **Not tested** - Windows, AMD; the rest of the suite on this branch; work graphs (slots 84/85) in a title; the picture **AI use:** Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks, counts and log lines are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
Author
Owner

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

Empirical test report (21b9e043)

Verified PR #753 at 21b9e04309874e1fa5e62ccc990fac864a8298dc.

Hardware / environment

Windows x64 build 26200 on an AMD CPU (family 23, model 113). Rust 1.100.0 (0ef1bc386) and DXC 1.9.2609.5 (01b62ad47). Cargo test profile, unoptimized, with debug info and incremental compilation disabled. The GPU fixture ran under the Arc A770 test lock with XCL_ADAPTER=A770. It passes a null adapter to D3D12CreateDevice, so D3D12 selects the adapter and the run does not establish its model or driver version.

Commands and results

  • cargo test --workspace --no-run built the workspace test executables outside the Arc lock and exited 0.
  • Ran the compiled xcl library test executable (xcl-00e28da3621caf64.exe) with --exact and these three filters in one invocation, using XCL_ADAPTER=NONE_CPU_ONLY outside the lock. 3 passed, 0 failed, 0 ignored.
    • hle::d3d12x::layout::tests::command_list10_matches_the_sdk
    • hle::d3d12x::real::command_list10_tests::title_slots_84_85_are_not_work_graph_methods
    • hle::d3d12x::title_list::tests::command_list10_query_is_answered_by_the_pc_list
  • Invoke-ArcTest.ps1 -Test { & $testExe --exact hle::d3d12x::real::command_list10_tests::gpu_command_list10_is_adopted_with_its_layout } ran the GPU fixture alone. 1 passed, 0 failed, 0 ignored.
  • Both focused invocations used RUST_TEST_NOCAPTURE=1 and exited 0. Total: 4 passed, 0 failed, 0 ignored, 0 skipped.

Observed behavior

The CPU fixtures verified the List9/10/11 layout and PC slots 84/85, the title's CopyResource and SetPredication slot mappings, and QueryInterface with a stand-in PC list. The supported case returned the wrapper and forwarded slots 84 and 85. The unsupported case returned E_NOINTERFACE with a null pointer. The D3D12 fixture adopted a List10 object with 86 PC methods, confirmed QueryInterface returned the same object, and checked that its title-visible slot pointers 84 and 85 differed from the original PC entries.

Not tested

The full GPU workspace suite and game smoke runs were omitted. The focused GPU fixture checked interface adoption and slot mappings without dispatching a work graph.

AI use

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

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/753#issuecomment-7154389414) ### Empirical test report (21b9e043) Verified PR #753 at `21b9e04309874e1fa5e62ccc990fac864a8298dc`. **Hardware / environment** Windows x64 build 26200 on an AMD CPU (family 23, model 113). Rust 1.100.0 (0ef1bc386) and DXC 1.9.2609.5 (01b62ad47). Cargo test profile, unoptimized, with debug info and incremental compilation disabled. The GPU fixture ran under the Arc A770 test lock with `XCL_ADAPTER=A770`. It passes a null adapter to `D3D12CreateDevice`, so D3D12 selects the adapter and the run does not establish its model or driver version. **Commands and results** - `cargo test --workspace --no-run` built the workspace test executables outside the Arc lock and exited 0. - Ran the compiled `xcl` library test executable (`xcl-00e28da3621caf64.exe`) with `--exact` and these three filters in one invocation, using `XCL_ADAPTER=NONE_CPU_ONLY` outside the lock. 3 passed, 0 failed, 0 ignored. - `hle::d3d12x::layout::tests::command_list10_matches_the_sdk` - `hle::d3d12x::real::command_list10_tests::title_slots_84_85_are_not_work_graph_methods` - `hle::d3d12x::title_list::tests::command_list10_query_is_answered_by_the_pc_list` - `Invoke-ArcTest.ps1 -Test { & $testExe --exact hle::d3d12x::real::command_list10_tests::gpu_command_list10_is_adopted_with_its_layout }` ran the GPU fixture alone. 1 passed, 0 failed, 0 ignored. - Both focused invocations used `RUST_TEST_NOCAPTURE=1` and exited 0. Total: 4 passed, 0 failed, 0 ignored, 0 skipped. **Observed behavior** The CPU fixtures verified the List9/10/11 layout and PC slots 84/85, the title's CopyResource and SetPredication slot mappings, and QueryInterface with a stand-in PC list. The supported case returned the wrapper and forwarded slots 84 and 85. The unsupported case returned `E_NOINTERFACE` with a null pointer. The D3D12 fixture adopted a List10 object with 86 PC methods, confirmed QueryInterface returned the same object, and checked that its title-visible slot pointers 84 and 85 differed from the original PC entries. **Not tested** The full GPU workspace suite and game smoke runs were omitted. The focused GPU fixture checked interface adoption and slot mappings without dispatching a work graph. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr753-focused.log` and published.
Author
Owner

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

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 11:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/753#issuecomment-7160823315) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/hle/d3d12x/title_list.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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