gpu: verify texture reuse across three EXE-driven draws #705
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!705
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/705/head"
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?
@RonLogic on GitHub · 2026-11-22 21:27 UTC · original
RonLogic:test/guest-texture-reuse-upstream→main· +404 −57 · 9 files · 1 commits · merged 2026-11-22 21:56 UTCChange
Refs #218, #560, #658 and #682. Brings the two-frame draft onto upstream after its dependencies merged. The source-built shim EXE drives three draws using one D3D12 device, direct queue and 2×2 texture. Compute initializes all four texels, then updates one in place. The third draw reuses the same SRV with a second pipeline that swaps red and blue. The EXE publishes each fence-waited readback for exact comparison through native Windows,
pe_map, and AOT.The control skips the partial dispatch. It must report the first mismatch at stage 2, pixel (24, 8), with expected RGBA (255, 0, 255, 255) and actual (0, 255, 0, 255). Full-frame references cover the three untouched texels and the third draw. The persistent draw modes use 6–13 so #682 keeps its existing modes 3–5.
Verification
Tested
4e956b7on base343a3a4using Windows 11 build 26300.9974, RTX 4070 and WARP. All 13 selected tests passed in Debug and all 13 passed in Release, with no skips. This includes the merged shim chain and compute-to-mesh texture regressions on both adapters. The new EXE fixture does not request the D3D12 debug layer.The fixtures use source-built synthetic shaders and data under the project's MIT license.
Developed with Codex.