Repository navigation
D3D12.X: honour OS QPC timestamp flags and atomic 64-bit CPU writes (#103) - #317
Michael-Glaser wants to merge 1 commit into
Conversation
|
A Windows run for this draft, since the description has none yet: Tested
GPU tests skipped: the usual 2 ( The Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build and tests and wrote this comment; the numbers come from those runs. |
…vall#103) Write64BitValueBottomOfPipeX (flags 0x2) and Write64BitValueTopOfPipeX (flags 0x8) routed OS QPC timestamp requests to GPU timestamp queries (wrong clock domain/frequency and dropped on copy lists). cpu_writes also split immediate 64-bit stores into two 32-bit AtomicU32 stores and did not exclude PAGE_GUARD in write_now / writable. Split GPU vs OS timestamp flag bits explicitly (classify_write64), keep the existing GPU readback path for GPU timestamps, write top-of-pipe OS QPC timestamps right before ExecuteCommandLists / KickoffX and bottom-of-pipe OS QPC timestamps via cpu_writes after GPU fence completion, store 64-bit values atomically via AtomicU64, and reject PAGE_GUARD / overflowing ranges in cpu_writes. Assisted-by: Antigravity (Gemini 4 Neon)
adddae9 to
d87aa07
Compare
|
Thanks @regiumlepidi! Rebased onto main (a6f5f7a, commit d87aa07), keeping 4403887's ReadbackU64 GPU timestamp path intact alongside the OS QPC timestamp flags and AtomicU64 / PAGE_GUARD fixes. |
Part of #103.
Write64BitValueBottomOfPipeX(0x2) andWrite64BitValueTopOfPipeX(0x8) routed OS QPC timestamps to GPU timestamp queries;cpu_writesalso split 64-bit stores into two 32-bit writes and did not rejectPAGE_GUARD.What is in it
crates/xcl/src/hle/d3d12x/{cpu_writes.rs, list_x.rs, real.rs}: split GPU vs OS timestamp flags (classify_write64), stamp top/bottom OS QPC timestamps viacpu_writeswithAtomicU64, rejectPAGE_GUARD, and add unit tests.Tested
aarch64-apple-darwin, Rust 1.100.0):cargo check --offline --target x86_64-pc-windows-msvc --workspace --tests(0 errors, 0 new warnings).Not tested
cargo test, GPU tests, andscripts/smoke.ps1not run yet.AI use