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

Manually merged
github merged 1 commit from gh-pr/705/head into gh-pr/705/base 2026-11-26 22:13:11 +00:00
Owner

@⁠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 UTC

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.

**@⁠RonLogic** on GitHub · 2026-11-22 21:27 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/705) `RonLogic:test/guest-texture-reuse-upstream` → `main` · +404 −57 · 9 files · 1 commits · merged 2026-11-22 21:56 UTC ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:13:09 +00:00
github manually merged commit 4e956b7e17 into gh-pr/705/base 2026-11-26 22:13:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.