You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
D3D12.X: CopyTiles ignores the console-placed linear buffer prefix #2908
On upstream main 8b957bec6f82495aec940944c6bf47faa02db590, create a console-placed linear buffer with a 4,096-byte prefix and map one 64 KiB tile in a reserved buffer. Copy the synthetic payload using the graphics command-list slot #18 and DMA command-list slot #14, in both directions, with linear offset 0. Read back the tile or the linear buffer after its fence. For tile-to-linear, verify the prefix guard bytes as well as the payload.
All four submissions reached their fences and the D3D12 device stayed live. The test reported 0 passed, 1 failed, 0 ignored and 0 capability skips. A local candidate that adds the placed buffer's prefix before forwarding to native CopyTiles returned zero mismatches in all four cases. The candidate run reported 1 passed, 0 failed, 0 ignored and 0 capability skips.
Scope
Apply the existing placed-buffer delta to the linear byte offset in the two console CopyTiles slots. Keep the host CopyTiles ABI and offset unchanged.
Environment
Windows 11 25H2 build 26200.9974, Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, debug. Synthetic fixtures only. Main tree a9cb36b5105a89f143c353ec96ec45df2ec25dbe, control overlay patch ID 2bfe33b43d2b4ef173fb470e9fd07621715c9ec0, candidate overlay patch ID 08cc5bb010128d60a7b03dc3ade867d512b5cf68.
cargo test -p xcl --test d3d12_resource_and_sync --locked --offline -j 2 --no-run --message-format=json
<d3d12_resource_and_sync test executable> --exact console_copy_tiles_reads_and_writes_placed_buffer_bytes --test-threads=1 --nocapture
Native D3D12 round-trips the exact combination 4096 + 65536 = 69632 for CopyTiles on a second physical GPU. I mapped a 64 KiB reserved buffer, copied a generated payload both ways, and verified the guards at host offsets 0, 4096, 65536 and 69632. All four returned zero mismatches on RTX 4070 Ti SUPER, driver 617.14. This extends your report's zero caller-offset case with a native oracle. Source, command and output.
A compact next regression is your existing 4096-byte placed prefix plus a 65536-byte caller offset on both console slots, with untreated bytes before and after the payload and the ordinary host path as a control. That distinguishes addition from replacing the caller offset. The probe exercises native D3D12 only. PortBridge · AI-assisted test and report.
I ran the requested 65,536-byte caller-offset case with a 4,096-byte placement prefix on console graphics slot 18 and DMA slot 14. Each list class copied one generated 65,536-byte tile in both directions and checked the payload plus the bytes before and after it. The ordinary ID3D12GraphicsCommandList::CopyTiles control used the same placed buffer at the explicit host offset of 69,632 bytes. Native oracle and requested follow-up
Path
Main 8b957bec6f82495aec940944c6bf47faa02db590 plus identical fixture
65,520 payload bytes mismatched per slot. Both guards matched.
Zero mismatches
Console readback on both slots
65,520 payload and 4,080 leading guard bytes mismatched per slot. Trailing guards matched.
Zero mismatches
Each revision completed all eight fence waits and kept the device live. The focused test was 0 passed, 1 failed, 0 ignored on main and 1 passed, 0 failed, 0 ignored on the candidate. Both had zero capability skips.
The pair ran serially on Windows 11 25H2 build 26200.9974, Core i5-13600K, NVIDIA GeForce RTX 4080 driver 621.01 and Rust 1.100.0 MSVC in debug mode. Both builds used cargo test -p xcl --test d3d12_resource_and_sync --locked --offline -j 2 --no-run --message-format=json. Each resulting test executable ran with --exact console_copy_tiles_reads_and_writes_placed_buffer_bytes --test-threads=1 --nocapture and XCL_ADAPTER=4080 XCL_NETWORK=0 XCL_UMA_MB=64.
The same clean candidate also passed cargo build --workspace --locked --offline -j 2 and cargo test --workspace --locked --offline -j 2 --no-fail-fast -- --test-threads=1 --show-output with XCL_ADAPTER=4080 XCL_NETWORK=0. The workspace reported 1,448 passed, 0 failed, 47 ignored. The 29 explicit SKIPPED notices were 21 for wave64, three for unsupported Direct DXIL instructions, three for the debug layer, one for driver-cache control, and one for heap windows.
This caller-offset comparison covers the RTX 4080 and synthetic data. Wave64 hardware and retail titles were outside the run. Verified fixture and candidate
Fixed in #2953 — a byte-identical revival of the withdrawn #2911 (authorship preserved), re-verified on this machine: the GPU test fails without the fix with the exact reproduction numbers from this issue (65520/69600 mismatched bytes on both slots) and passes with zero mismatches with it.
Activity
akimfomin commentedon Nov 26, 2026
Native D3D12 round-trips the exact combination
4096 + 65536 = 69632forCopyTileson a second physical GPU. I mapped a 64 KiB reserved buffer, copied a generated payload both ways, and verified the guards at host offsets 0, 4096, 65536 and 69632. All four returned zero mismatches on RTX 4070 Ti SUPER, driver 617.14. This extends your report's zero caller-offset case with a native oracle. Source, command and output.A compact next regression is your existing 4096-byte placed prefix plus a 65536-byte caller offset on both console slots, with untreated bytes before and after the payload and the ordinary host path as a control. That distinguishes addition from replacing the caller offset. The probe exercises native D3D12 only. PortBridge · AI-assisted test and report.
CryingLaughing commentedon Nov 27, 2026
I ran the requested 65,536-byte caller-offset case with a 4,096-byte placement prefix on console graphics slot 18 and DMA slot 14. Each list class copied one generated 65,536-byte tile in both directions and checked the payload plus the bytes before and after it. The ordinary
ID3D12GraphicsCommandList::CopyTilescontrol used the same placed buffer at the explicit host offset of 69,632 bytes. Native oracle and requested follow-up8b957bec6f82495aec940944c6bf47faa02db590plus identical fixturebc5745c34b9caa5ef05f4f4b5306ccd7fdb1b118Each revision completed all eight fence waits and kept the device live. The focused test was 0 passed, 1 failed, 0 ignored on main and 1 passed, 0 failed, 0 ignored on the candidate. Both had zero capability skips.
The pair ran serially on Windows 11 25H2 build 26200.9974, Core i5-13600K, NVIDIA GeForce RTX 4080 driver 621.01 and Rust 1.100.0 MSVC in debug mode. Both builds used
cargo test -p xcl --test d3d12_resource_and_sync --locked --offline -j 2 --no-run --message-format=json. Each resulting test executable ran with--exact console_copy_tiles_reads_and_writes_placed_buffer_bytes --test-threads=1 --nocaptureandXCL_ADAPTER=4080 XCL_NETWORK=0 XCL_UMA_MB=64.The same clean candidate also passed
cargo build --workspace --locked --offline -j 2andcargo test --workspace --locked --offline -j 2 --no-fail-fast -- --test-threads=1 --show-outputwithXCL_ADAPTER=4080 XCL_NETWORK=0. The workspace reported 1,448 passed, 0 failed, 47 ignored. The 29 explicitSKIPPEDnotices were 21 for wave64, three for unsupported Direct DXIL instructions, three for the debug layer, one for driver-cache control, and one for heap windows.This caller-offset comparison covers the RTX 4080 and synthetic data. Wave64 hardware and retail titles were outside the run. Verified fixture and candidate
kotekompotek commentedon Nov 27, 2026
Fixed in #2953 — a byte-identical revival of the withdrawn #2911 (authorship preserved), re-verified on this machine: the GPU test fails without the fix with the exact reproduction numbers from this issue (65520/69600 mismatched bytes on both slots) and passes with zero mismatches with it.
D3D12.X: honor placed buffer offsets in CopyTiles