gpu: add GPU-to-CPU visibility reference #3950
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3950"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-03T16:51:21Z.
Problem
The linear-buffer tests report whether a GPU-written range is visible through the
title alias, but they do not isolate the CPU read before and after the fence the
title observes. That makes it hard to compare the Windows behavior with an
authorized console run or to use the result as the boundary for a later targeted
readback.
Change
Add a bounded
--referencemode to the existing production-wrapper fixture. Itruns only the GPU-write/CPU-read cases for
share,copyandrefusal, beforeand after the fence. It checks all 1,024 written words, every neighbouring byte
outside the range, and a GPU readback in the same submission. The latter proves
that the dispatch ran when the title alias remains stale.
Add a title-neutral console procedure for the same synthetic vector. It describes
an out-of-repo GDK harness and keeps its result
unmeasureduntil target, guardand fence-protocol bytes are recorded. No GDK files enter the repository.
Refs #1914, #3676 and #3763.
Validation
Windows 11, MSVC,
devpreset, debug layer off, WARP and AMD Radeon RX 9060 XT:Observed reference results are documented in the new note. The D3D12 debug layer
could not be enabled because it is not installed on the test host.
Limits
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T17:24:06Z.
Review: APPROVED
Independent Windows 11 build 26300 MSVC Debug run on WARP and RTX 4060 Laptop. All six gpu_cpu_visibility_reference cases passed. The full backing family had one RTX copy-mode gate2q failure (35/36 overall): both readers matched 1,024/1,024 B words but the wait count was +0. The same signature predates this PR in #3426. The exact-head targeted retry passed 3/3 and the parent test source passed 5/5 in an isolated comparison. This PR adds a reference branch to the test and does not change runtime code or the gate2q case. The reference comparison checks the staged GPU readback and old or new CPU alias bytes at the fence boundary, preserving neighbouring bytes. Required Windows CI passed.