Textures: copy readable UMA bytes into owned memory #1390

Open
hajduzsolt wants to merge 1 commit from upstream-pr/1400 into main
hajduzsolt commented 2026-11-24 15:37:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by hajduzsolt on 2026-11-24T15:37:49Z.


What is in it

  • crates/xcl/src/gpu/texture.rs: checked owned UMA copy and synthetic committed, sparse and cross-window checks.

Tested

  • Windows 11 Pro x64 build 26300, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB, driver 32.0.32029.2010; Rust 1.98.1 MSVC, debug.
  • cargo test -p xcl --lib uma_copy_is_owned_and_rejects_uncommitted_memory: 1 passed, 0 failed.
  • cargo test --workspace -- --test-threads=4 --nocapture: 752 passed, 0 failed, 41 ignored. The reported passes include tests that return early.
  • SKIPPED: test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state (D3D12 debug layer unavailable).

Regression run

main:

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

PR:

xcl-smoke v1
commit: 23da9be703ba710c5a6be61e3d40f9c62e43df83
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: 14706 MB

Not tested

  • Retail title and debug-layer validation. The existing readability helper limits copies to 256 MiB. The public return type changes from a borrowed slice to Vec<u8>; there are no in-tree callers. The copy is not an atomic snapshot of concurrent guest writes.

AI use

  • Codex (GPT-6): wrote implementation and unit tests, ran validation, and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:5475327533 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400). Originally posted by [hajduzsolt](https://github.com/hajduzsolt) on 2026-11-24T15:37:49Z. --- **What is in it** - `crates/xcl/src/gpu/texture.rs`: checked owned UMA copy and synthetic committed, sparse and cross-window checks. **Tested** - Windows 11 Pro x64 build 26300, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB, driver 32.0.32029.2010; Rust 1.98.1 MSVC, debug. - `cargo test -p xcl --lib uma_copy_is_owned_and_rejects_uncommitted_memory`: 1 passed, 0 failed. - `cargo test --workspace -- --test-threads=4 --nocapture`: 752 passed, 0 failed, 41 ignored. The reported passes include tests that return early. - SKIPPED: `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state` (D3D12 debug layer unavailable). **Regression run** main: ``` xcl-smoke v1 commit: b7aa9f3bd212088e0d927439284dc5ed325ce3c7 gpu: AMD Radeon RX 9070 XT title: A newer retail game seconds: 60 exit: 0x0 frames shown: 1675 (PresentX 1675) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14837 MB ``` PR: ``` xcl-smoke v1 commit: 23da9be703ba710c5a6be61e3d40f9c62e43df83 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: 14706 MB ``` **Not tested** - Retail title and debug-layer validation. The existing readability helper limits copies to 256 MiB. The public return type changes from a borrowed slice to `Vec<u8>`; there are no in-tree callers. The copy is not an atomic snapshot of concurrent guest writes. **AI use** - Codex (GPT-6): wrote implementation and unit tests, ran validation, and drafted this description.
DavidM1911 commented 2026-11-24 17:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T17:01:45Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7138574988 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7138574988). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T17:01:45Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
Foniass commented 2026-12-01 05:38:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:38:06Z.


Triage (#1607) – head 23da9be

#1530 makes the same change to gpu/texture.rs::uma_bytes (owned Vec copy instead of &'static [u8], rejecting sparse/uncommitted and cross-window spans); this PR was opened first, merges cleanly and has a test.
Note: uma_bytes has no caller in crates/ on main, so the change has no runtime effect today.
Recommendation: keep open.

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

<!-- greyfinch-sync:ivall/xcl:comment:7301976905 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7301976905). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:38:06Z. --- **Triage (#1607)** – head 23da9be #1530 makes the same change to gpu/texture.rs::uma_bytes (owned Vec<u8> copy instead of &'static [u8], rejecting sparse/uncommitted and cross-window spans); this PR was opened first, merges cleanly and has a test. Note: uma_bytes has no caller in crates/ on main, so the change has no runtime effect today. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
fromthemoonx commented 2026-12-01 14:00:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-01T14:00:20Z.


merge-check
base: 5eaadb54c1
head: 23da9be703
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2975 passed, 0 failed, 52 ignored (base: 2974 passed, 0 failed, 52 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none in this run
review: correction: my earlier safe to merge on this head missed a flaky test. @vasanex and @stijn-boer are right.

  • uma_copy_is_owned_and_rejects_uncommitted_memory asserts u.contains(base + 4 GiB), but Uma::new does not promise that. It picks its address by the first window only, then tries to reserve the sparse windows (reserve_sparse_windows). If anything else holds memory in that range, it goes on without them.
  • It never failed here by chance (50 runs alone, 40 of the gpu::texture module and 25 together with gpu::uma at 8 threads). It fails every time when I reserve 64 KiB at base + 8 GiB before Uma::new: assertion failed: u.contains(sparse).
  • Fix I tried: return early from the test when !u.contains(sparse), in place of the assert. It then passes with the range taken. In that case the last two checks do not run.
  • The change to uma_bytes itself still reads correct. It has no caller on main.
    performance: no runtime effect today (no caller). For a future caller, a copy per call instead of a borrow.
    verdict: not yet: the new test fails when the sparse windows cannot be reserved; the fix is in the test only
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7313539534 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7313539534). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-01T14:00:20Z. --- merge-check base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: 23da9be703ba710c5a6be61e3d40f9c62e43df83 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2975 passed, 0 failed, 52 ignored (base: 2974 passed, 0 failed, 52 ignored); SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps), the same set as base; failing: none in this run review: **correction: my earlier `safe to merge` on this head missed a flaky test. @vasanex and @stijn-boer are right.** - `uma_copy_is_owned_and_rejects_uncommitted_memory` asserts `u.contains(base + 4 GiB)`, but `Uma::new` does not promise that. It picks its address by the first window only, then tries to reserve the sparse windows (`reserve_sparse_windows`). If anything else holds memory in that range, it goes on without them. - It never failed here by chance (50 runs alone, 40 of the `gpu::texture` module and 25 together with `gpu::uma` at 8 threads). It fails every time when I reserve 64 KiB at `base + 8 GiB` before `Uma::new`: `assertion failed: u.contains(sparse)`. - Fix I tried: return early from the test when `!u.contains(sparse)`, in place of the assert. It then passes with the range taken. In that case the last two checks do not run. - The change to `uma_bytes` itself still reads correct. It has no caller on main. performance: no runtime effect today (no caller). For a future caller, a copy per call instead of a borrow. verdict: not yet: the new test fails when the sparse windows cannot be reserved; the fix is in the test only hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
vasanex commented 2026-12-02 00:54:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vasanex on 2026-12-02T00:54:00Z.


merge-check claim
head: 23da9be703

<!-- greyfinch-sync:ivall/xcl:comment:7331082781 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7331082781). Originally posted by [vasanex](https://github.com/vasanex) on 2026-12-02T00:54:00Z. --- merge-check claim head: 23da9be703ba710c5a6be61e3d40f9c62e43df83
vasanex commented 2026-12-02 01:01:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by vasanex on 2026-12-02T01:01:51Z.


merge-check
base: 1c8b551475
head: 23da9be703
merge: clean (merged tree 71ba8083, git diff --check clean)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> two runs on the merge. Run 1: 2909 passed, 1 failed, 51 ignored; failing: gpu::texture::tests::uma_copy_is_owned_and_rejects_uncommitted_memory, the test this PR adds (texture.rs:797, assertion failed: u.contains(sparse)); it does not exist on the base. Run 2: 2906 passed, 4 failed, 51 ignored; the PR's test passed, and the four failures are in a file this PR does not touch (hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels and the three stream_recheck_* tests that then fail on the lock it poisoned): a timing race between GPU tests that I have seen on main before, not this PR's. SKIPPED: 25 in both runs (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache), the same set as on the base. Base alone, same machine: 2909 passed, 0 failed, 51 ignored. The PR's test alone (cargo test -p xcl --lib uma_copy_is_owned_and_rejects_uncommitted_memory): 3 of 3 passed; the gpu::texture module with 4 threads: 6 of 6 passed.
review: whole diff read (one file, texture.rs, +39/-6). One finding that should be fixed first: the new test assumes that u.base() + 4 GiB lies in a window of the Uma it has just made (assert!(u.contains(sparse))). That holds only when Uma::new could reserve its sparse windows there; in the whole suite, where other tests make their own UMA at the same time, it did not hold in 1 of 2 runs here, so the test fails by chance and would cost other PRs their test reports. Taking the address from the Uma itself (a sparse window it reports, and skipping that part when it has none) would make it independent of what else runs. The change itself reads right to me: uma_bytes has no caller on main, so the new return type breaks nothing; the copy goes through ReadProcessMemory after the readability check, so a page that goes away in between gives an error instead of a fault; a span that crosses windows or is empty is refused. The first check on this head, on another machine, had no failure.
performance: none by default: the function has no caller. A caller would now pay a copy of the texture (up to 256 MiB by the readability helper's limit) instead of borrowing it.
verdict: not yet: the test this PR adds fails by chance in the whole suite (u.contains(sparse), 1 of 2 runs with --test-threads=4 on this machine)
hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB (driver 621.40), AMD Ryzen 9 7950X, Windows 11 Pro 26200, rustc 1.100.0, debug / Claude Code with Claude Fable 5.2. Run and posted without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7331234438 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7331234438). Originally posted by [vasanex](https://github.com/vasanex) on 2026-12-02T01:01:51Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: 23da9be703ba710c5a6be61e3d40f9c62e43df83 merge: clean (merged tree 71ba8083, `git diff --check` clean) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> two runs on the merge. Run 1: 2909 passed, 1 failed, 51 ignored; failing: `gpu::texture::tests::uma_copy_is_owned_and_rejects_uncommitted_memory`, the test this PR adds (texture.rs:797, `assertion failed: u.contains(sparse)`); it does not exist on the base. Run 2: 2906 passed, 4 failed, 51 ignored; the PR's test passed, and the four failures are in a file this PR does not touch (`hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` and the three `stream_recheck_*` tests that then fail on the lock it poisoned): a timing race between GPU tests that I have seen on main before, not this PR's. SKIPPED: 25 in both runs (22 no wave64, 2 no heap windows, 1 cannot disable the driver cache), the same set as on the base. Base alone, same machine: 2909 passed, 0 failed, 51 ignored. The PR's test alone (`cargo test -p xcl --lib uma_copy_is_owned_and_rejects_uncommitted_memory`): 3 of 3 passed; the `gpu::texture` module with 4 threads: 6 of 6 passed. review: whole diff read (one file, texture.rs, +39/-6). One finding that should be fixed first: the new test assumes that `u.base() + 4 GiB` lies in a window of the `Uma` it has just made (`assert!(u.contains(sparse))`). That holds only when `Uma::new` could reserve its sparse windows there; in the whole suite, where other tests make their own UMA at the same time, it did not hold in 1 of 2 runs here, so the test fails by chance and would cost other PRs their test reports. Taking the address from the `Uma` itself (a sparse window it reports, and skipping that part when it has none) would make it independent of what else runs. The change itself reads right to me: `uma_bytes` has no caller on main, so the new return type breaks nothing; the copy goes through `ReadProcessMemory` after the readability check, so a page that goes away in between gives an error instead of a fault; a span that crosses windows or is empty is refused. The first check on this head, on another machine, had no failure. performance: none by default: the function has no caller. A caller would now pay a copy of the texture (up to 256 MiB by the readability helper's limit) instead of borrowing it. verdict: not yet: the test this PR adds fails by chance in the whole suite (`u.contains(sparse)`, 1 of 2 runs with --test-threads=4 on this machine) hardware / tool and model: NVIDIA GeForce RTX 3080 10 GB (driver 621.40), AMD Ryzen 9 7950X, Windows 11 Pro 26200, rustc 1.100.0, debug / Claude Code with Claude Fable 5.2. Run and posted without a human check of each point.
stijn-boer commented 2026-12-02 16:44:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by stijn-boer on 2026-12-02T16:44:41Z.


merge-check
base: 5eaadb54c1
head: 23da9be703
verdict: not yet: the focused UMA test passed 12 of 12 isolated runs and the workspace and smoke exits reproduced on main. Independent reports on this head found an intermittent failure in the PR's new UMA test when sparse windows could not be reserved (suite report).

Windows / AMD RDNA4 (native D3D12) — workspace suite and retail smoke on 23da9be

Clean merge onto main at 5eaadb54 (merge commit 0b97c25c36ad7e5cbb6cfcdb0761371613f3f04d). git diff --check was clean.

Setup

  • AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332
  • Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching d3d12SDKLayers.dll, DXC 1.9.2609.5

Tested

cargo build --workspace passed on both builds. cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101 on both.

Build Passed Failed Ignored SKIPPED notices
main 335 3 23 0
Merged PR 335 3 23 0

Counts are partial because two test processes aborted on each build.

  • Tests that failed on the PR and passed on main — none observed in the comparable results.
  • Test added by the PR — uma_copy_is_owned_and_rejects_uncommitted_memory passed 12 of 12 isolated invocations.
  • Debug-layer coverage — both debug-layer E2E tests, including DRED, and uploads_start_from_each_subresources_state passed on both builds.
Shared failures and process aborts
  • fuzz_validate_and_gpu_1, fuzz_validate_and_gpu_3, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs reported failures on both builds.
  • The library and gpu_compute_e2e test processes exited with 0xc0000409 on both builds.

Retail smoke

Ran scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary> with XCL_UMA_DRIVER=mixed for title hash 2c508222.

Build Exit Frames logged Device removals logged Peak commit
main 0xc0000409 None 0 1320 MB
Merged PR 0xc0000409 None 0 1320 MB

Diff review

The isolated test checks ownership and rejects unreadable ranges. The merged tree has no runtime caller of uma_bytes.

Not tested

Tests after the aborts and retail frame performance remain unverified.

AI use

Codex (GPT-6) ran the builds and tests, reviewed the diff, compared the results with main, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7352392934 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7352392934). Originally posted by [stijn-boer](https://github.com/stijn-boer) on 2026-12-02T16:44:41Z. --- merge-check base: 5eaadb54c14e0fc29597b2a1689d7dbd83491303 head: 23da9be703ba710c5a6be61e3d40f9c62e43df83 verdict: not yet: the focused UMA test passed 12 of 12 isolated runs and the workspace and smoke exits reproduced on main. Independent reports on this head found an intermittent failure in the PR's new UMA test when sparse windows could not be reserved ([suite report](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7331234438)). **Windows / AMD RDNA4 (native D3D12) — workspace suite and retail smoke on `23da9be`** Clean merge onto `main` at `5eaadb54` (merge commit `0b97c25c36ad7e5cbb6cfcdb0761371613f3f04d`). `git diff --check` was clean. **Setup** - AMD Radeon RX 9060 XT (driver 32.0.32029.2010), Ryzen 7 5700X, Windows 10 21H2 build 19044.6332 - Rust 1.100.0, debug builds, Agility SDK 1.620.2 with matching `d3d12SDKLayers.dll`, DXC 1.9.2609.5 **Tested** `cargo build --workspace` passed on both builds. `cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output` exited 101 on both. | Build | Passed | Failed | Ignored | `SKIPPED` notices | |---|---:|---:|---:|---:| | `main` | 335 | 3 | 23 | 0 | | Merged PR | 335 | 3 | 23 | 0 | Counts are partial because two test processes aborted on each build. - **Tests that failed on the PR and passed on `main`** — none observed in the comparable results. - **Test added by the PR** — `uma_copy_is_owned_and_rejects_uncommitted_memory` passed 12 of 12 isolated invocations. - **Debug-layer coverage** — both debug-layer E2E tests, including DRED, and `uploads_start_from_each_subresources_state` passed on both builds. <details><summary>Shared failures and process aborts</summary> - `fuzz_validate_and_gpu_1`, `fuzz_validate_and_gpu_3`, and `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` reported failures on both builds. - The library and `gpu_compute_e2e` test processes exited with `0xc0000409` on both builds. </details> **Retail smoke** Ran `scripts/smoke.ps1 -Game <local folder> -Seconds 60 -Xcl <debug binary>` with `XCL_UMA_DRIVER=mixed` for title hash `2c508222`. | Build | Exit | Frames logged | Device removals logged | Peak commit | |---|---|---|---:|---:| | `main` | `0xc0000409` | None | 0 | 1320 MB | | Merged PR | `0xc0000409` | None | 0 | 1320 MB | **Diff review** The isolated test checks ownership and rejects unreadable ranges. The merged tree has no runtime caller of `uma_bytes`. **Not tested** Tests after the aborts and retail frame performance remain unverified. **AI use** Codex (GPT-6) ran the builds and tests, reviewed the diff, compared the results with `main`, and drafted this report.
fromthemoonx commented 2026-12-02 17:11:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-02T17:11:26Z.


@hajduzsolt I have corrected my check from safe to merge to not yet: the new test fails whenever the sparse windows cannot be reserved. I could make it fail every time, and a small change in the test fixes it: https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7313539534

<!-- greyfinch-sync:ivall/xcl:comment:7353027999 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7353027999). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-02T17:11:26Z. --- @hajduzsolt I have corrected my check from `safe to merge` to `not yet`: the new test fails whenever the sparse windows cannot be reserved. I could make it fail every time, and a small change in the test fixes it: https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7313539534
ClosetPie107 commented 2026-12-02 17:12:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:12:58Z.


Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on 23da9be

Merged onto main 5eaadb54 (clean merge) and compared with main run twice on the same machine.

Setup

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7)
  • Wine 11.23 (system), stock vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi.dll from GE-Proton11-16, DXC 1.9.2609.5
  • Debug build, cross-compiled for x86_64-pc-windows-msvc with cargo-xwin; test binaries run under Wine

Tested: cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>

passed failed ignored
main 5eaadb54 2769 177 52
this PR merged 2770 177 52
  • Tests that fail with this PR and pass on main: none.
  • Tests this PR adds: 1 of 1 pass (uma_copy_is_owned_and_rejects_uncommitted_memory).
About the failures on main and the 31 skipped tests (same for every PR in this batch)
  • Most of main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests get E_INVALIDARG (0x80070057). Running vkd3d-proton master with its vtable check taken out, hle::d3d12x::sparse::tests goes from 106 passed / 38 failed to 144 / 0.
  • The 31 skipped tests make vkd3d-proton's dxil-spirv call std::terminate() (Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, gpu_compute_mode_dispatch_abi, gpu_compute_thread_limits_leave_the_lanes_past_them_out, the two gpu_mesh_mode_* tests, and console_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plus serialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv 93ab44c5).
  • main was run twice: same counts, same failure set. SKIPPED lines (same as main): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).

Not tested: Windows, NVIDIA, a retail title / scripts/smoke.ps1, a review of the diff. This is a test report, not a merge-check.

AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with main, and drafted this report. The user asked for it to be posted.

<!-- greyfinch-sync:ivall/xcl:comment:7353058820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1400#issuecomment-7353058820). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-12-02T17:12:58Z. --- **Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on `23da9be`** Merged onto `main` `5eaadb54` (clean merge) and compared with `main` run twice on the same machine. **Setup** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7) - Wine 11.23 (system), stock vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi.dll` from GE-Proton11-16, DXC 1.9.2609.5 - Debug build, cross-compiled for `x86_64-pc-windows-msvc` with `cargo-xwin`; test binaries run under Wine **Tested:** `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>` | | passed | failed | ignored | |---|---|---|---| | `main` `5eaadb54` | 2769 | 177 | 52 | | this PR merged | 2770 | 177 | 52 | - **Tests that fail with this PR and pass on `main`:** none. - **Tests this PR adds:** 1 of 1 pass (`uma_copy_is_owned_and_rejects_uncommitted_memory`). <details><summary>About the failures on <code>main</code> and the 31 skipped tests (same for every PR in this batch)</summary> - Most of `main`'s 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (`d3d12_command_list_Reset: Invalid command allocator`), and later tests get `E_INVALIDARG` (`0x80070057`). Running vkd3d-proton master with its vtable check taken out, `hle::d3d12x::sparse::tests` goes from 106 passed / 38 failed to 144 / 0. - The 31 skipped tests make vkd3d-proton's dxil-spirv call `std::terminate()` (`Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private`), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, `gpu_compute_mode_dispatch_abi`, `gpu_compute_thread_limits_leave_the_lanes_past_them_out`, the two `gpu_mesh_mode_*` tests, and `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back`, plus `serialize_root_signature_strips_console_flags_and_preserves_pc_flags`, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (`f8c1cae8`, dxil-spirv `93ab44c5`). - `main` was run twice: same counts, same failure set. `SKIPPED` lines (same as `main`): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1). </details> **Not tested:** Windows, NVIDIA, a retail title / `scripts/smoke.ps1`, a review of the diff. This is a test report, not a `merge-check`. **AI use:** omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with `main`, and drafted this report. The user asked for it to be posted.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1400:upstream-pr/1400'
git switch 'upstream-pr/1400'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1400'
git switch 'upstream-pr/1400'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1400'
git switch 'upstream-pr/1400'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1400'
git switch 'main'
git merge --squash 'upstream-pr/1400'
git switch 'main'
git merge --ff-only 'upstream-pr/1400'
git switch 'main'
git merge 'upstream-pr/1400'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1390
No description provided.