gpu: verify texture reuse across three EXE-driven draws #699

Merged
RonLogic merged 1 commit from upstream-pr/705 into main 2026-11-22 21:56:28 +00:00
RonLogic commented 2026-11-22 21:27:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T21:27:54Z.


Change

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 4e956b7 on base 343a3a4 using 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.

$tests = '^(cpu_(native_shim_startup|shim_(draw|compute|chain|texture_reuse)_(warp|hardware))|(compute_mesh_texture|mesh_textured_draw)_(warp|hardware))$'
ctest --test-dir out/build/followup --no-tests=error -R $tests -V
ctest --test-dir out/build/release --no-tests=error -R $tests -V
python -B tests/docs_links_check.py

The fixtures use source-built synthetic shaders and data under the project's MIT license.

Developed with Codex.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6548014551 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/705). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T21:27:54Z. --- ## Change Refs #218, #560, #658 and #682. Brings the [two-frame draft](https://github.com/RonLogic/Xbox2Windows/pull/1) 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 `4e956b7` on base `343a3a4` using 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. ```powershell $tests = '^(cpu_(native_shim_startup|shim_(draw|compute|chain|texture_reuse)_(warp|hardware))|(compute_mesh_texture|mesh_textured_draw)_(warp|hardware))$' ctest --test-dir out/build/followup --no-tests=error -R $tests -V ctest --test-dir out/build/release --no-tests=error -R $tests -V python -B tests/docs_links_check.py ``` The fixtures use source-built synthetic shaders and data under the project's MIT license. Developed with Codex.
upstream-sync closed this pull request 2026-11-24 06:44:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!699
No description provided.