Repository navigation
D3D12.X: honor placed buffer offsets in CopyTiles - #2953
kotekompotek wants to merge 1 commit into
Conversation
|
Cross-adapter check on exact PR head
The device remained live and both DMA fences completed in the fixture. This establishes a repeatable result on this laptop's two AMD adapters; the control does not isolate the fixture's copy-queue setup, the placed resource, or the driver. The PR's GTX 1050 result remains a separate passing result. I did not run the full workspace suite or a retail title for this PR. AI use: OpenAI Codex (GPT-6, exact serving variant unavailable) checked out the exact head, selected both adapters, ran the focused fixtures, repeated the RX 6800M failure, ran the uncommitted DMA control, and prepared this report. |
|
Independent NVIDIA check on #2953 head Windows 11 build 26300, RTX 3080 Ti (driver 621.35), Rust 1.99.1 MSVC, debug:
This adds a second NVIDIA adapter result. It does not resolve the AMD DMA mismatch or establish its cause. I did not run the full workspace suite or a retail title on this PR. The PR currently conflicts with AI use: Codex (GPT-6.2 Sol) selected the exact head, ran the tests on the hardware above, checked the output, and drafted this report. |
Use the console placement prefix in both directions for graphics and DMA lists. Verify native readback and keep host CopyTiles offsets unchanged. Fixes xcl-dev#2908
44ce003 to
7a4f0af
Compare
|
Rebased onto current main |
|
Linux (Wine) dual-lane run at
Heads-up on coverage: Head sits on main Suite: AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting. |
|
Follow-up to my earlier row: the integration-target test I flagged as uncovered by
So: lib test green (my earlier row, at AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting. |
|
Independent desktop NVIDIA verification of PR #2953 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --test d3d12_resource_and_sync -- console_copy_tiles_reads_and_writes_placed_buffer_bytes --exact --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 3 filtered out × 3 (0.40s × 3, 0 skipped — live RTX 4060 readback with placement_delta=4096: mismatch=0 across graphics slot=18 upload read=65536 & readback read=69632 and DMA slot=14 upload read=65536 & readback read=69632) |
cargo test --release -p xcl --test d3d12_resource_and_sync -- --test-threads=1 --nocapture (3 consecutive runs) |
4 passed; 0 failed; 0 ignored × 3 (0.47s, 0.46s, 0.45s, 0 skipped) |
cargo test --release -p xcl --lib -- hle::d3d12x::real::readback_routing_tests::console_copy_tiles_adjusts_only_the_linear_buffer_offset --exact --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 1356 filtered out × 3 (0.00s × 3, 0 skipped) |
cargo test --release -p xcl --lib -- hle::d3d12x::list_x:: --test-threads=1 --nocapture (3 consecutive runs) |
40 passed; 0 failed; 0 ignored; 1317 filtered out × 3 (1.23s, 1.23s, 1.26s, 0 runtime skips) |
cargo test --release -p xcl --lib -- hle::d3d12x::real:: --test-threads=1 --nocapture (3 consecutive runs) |
64 passed; 0 failed; 0 ignored; 1293 filtered out × 3 (1.98s, 1.99s, 1.97s, 0 runtime skips) |
cargo build --release -p xcl |
Clean build (1m 48s, exit 0, 0 new warnings in list_x.rs / real.rs) |
Paired quiet 60 s retail smoke (title: 29640639, XCL_PREPARE=0 XCL_NETWORK=0)
Exact parent & merge-base (83b008188efbf954b846667f48d75e3fa9310a01, XCL_PREPARE=0 XCL_NETWORK=0, cached baseline on the same machine):
xcl-smoke v1
commit: 83b008188efbf954b846667f48d75e3fa9310a01
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1609 (PresentX 1609)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14027 MB
PR #2953 (7a4f0afaae5e3cde7abee4c13b5e0dc3cc5d8a5f, XCL_PREPARE=0 XCL_NETWORK=0):
xcl-smoke v1
commit: 7a4f0afaae5e3cde7abee4c13b5e0dc3cc5d8a5f
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1610 (PresentX 1610)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14007 MB
Limits of coverage
- Directly verified on-GPU D3D12
CopyTilesupload and readback with a4096-byte console-placed buffer prefix on both graphics (slot=18) and DMA (slot=14) queues viaconsole_copy_tiles_reads_and_writes_placed_buffer_bytes(0byte mismatches across all 4 paths,3/3on RTX 4060), plusconsole_copy_tiles_adjusts_only_the_linear_buffer_offset,list_x::(40/40× 3), andreal::(64/64× 3). - Paired 60 s retail smokes ran with
XCL_PREPARE=0(XCL_NETWORK=0), bypassing startupprepare_for_launchshader precompilation, and did not separately verify whethertitle: 29640639invokes consoleCopyTilesduring its 60 s startup/menu window. - Non-Windows / Wine hosts and native 64-lane AMD GPUs were not tested on this machine.
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
Independent Windows RTX 3080 Ti check of #2953 head, paired with clean main. Windows 11 build 26300, NVIDIA 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC.
Clean-commit paired scripts/smoke.ps1 runs used the same title, RTX 3080 Ti, 60 seconds, XCL_PREPARE=0, XCL_DIRECT_DXIL=1, XCL_HEAP_WINDOWS=1, and XCL_PSO_PRELOAD=0. Both exited normally; these are the script-generated blocks for the PR description. The run reached the menu; world-load and AMD behavior were not tested here. Main: PR head: AI use: Codex (GPT-6.2 Sol) ran the tests and drafted this report; Codex (GPT-6.2 Astra) checked the CopyTiles offset path in source. |
The console graphics and DMA CopyTiles calls now add the existing placement prefix to the linear buffer's byte offset in both copy directions. Fixes #2908.
This revives the withdrawn #2911 by @CryingLaughing — closed unmerged without explanation despite positive AMD and Intel Arc verifications. The change is cherry-picked byte-identical (tree-verified against the original head
556b1c50, authorship preserved). Rebased 2026-11-27 onto current main83b00818(upstream landed #2844/#2924/#2976; only a README.md context conflict, resolved keeping both rows — the code patch is unchanged per range-diff). All verification below is fresh on the rebased head.What is in it
list_x.rs:copy_tiles_xaddsreal::buffer_delta(buffer)to the linear byte offset (saturating) before calling native CopyTiles; tiled resource and other args untouched.real.rs: DMA slot Olympus: emulate geometry wave64 on wave32 #14 removed from the straight console_remap passthrough; both console slots (graphics Olympus: isolate GameSave async validation test #18, DMA Olympus: emulate geometry wave64 on wave32 #14) routed through the adjustment. Host CopyTiles ABI/offset unchanged.console_copy_tiles_adjusts_only_the_linear_buffer_offsetand GPUconsole_copy_tiles_reads_and_writes_placed_buffer_bytes(placed buffer, 4096-byte prefix, one tile both directions through both slots, payload + guards verified).Tested
cargo test -p xcl --lib -- --test-threads=4: 1327 passed, 3 failed, 27 ignored — the 3 failures are the documented unmodified-main baseline (two pipeline_cap_tests need SM 6.6, inbox Win10 D3D12 has 6.5; gpu_retire_queue driver HRESULT on this GPU); +passes vs main are this PR's tests.cargo clippy -p xcl --all-targets(clippy 1.100): zero warnings in the changed lines (line-range cross-checked). The crate has pre-existing clippy noise on unmodified main (3 deny-by-defaultapprox_constantplus style warnings) — unchanged by this PR.Regression run
The synthetic XCL test title (tests/testtitle, exit 0x0, failures: 0). It never calls CopyTiles — this is a boot/file-IO regression check only; the discriminating evidence is the GPU test above.
main:
this PR:
Not tested
Retail titles (none available on this machine); the 2 s synthetic run does not exercise CopyTiles.
AI use
Implementation by the original author; revival, verification and this write-up AI-assisted (Devin / SWE-2.1).