shader: verify a compute-produced texture through translated mesh and pixel stages #658

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

@⁠RonLogic on GitHub · 2026-11-22 18:09 UTC · original
RonLogic:test/compute-mesh-texture → main · +179 −18 · 6 files · 1 commits · merged 2026-11-22 18:36 UTC

Change

Refs #218. Reuse #633’s translated indexed mesh, PARAM0 UVs and image_sample_lz pixel shader. A synthetic gfx1013 compute producer writes two packed RGBA8 rows at byte offsets 0 and 256 to a default-heap raw UAV. The direct command list transitions it to copy source, copies the rows into a 2×2 texture, transitions that texture to pixel-shader-resource state, and draws. The fixture reads back the final render target and mesh export trace.

The test exercises two palettes with the same mesh and pixel shaders. The updated draw dispatches both producers, then binds the newer texture. The control dispatches both and binds the older texture while keeping the newer reference.

Verification

At 24bd62e on Windows 11 build 26300.9974, the RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818) matched all 1,024 pixels for both palettes. The stale binding produced exactly 276 pixel mismatches while all 748 clear pixels and the mesh export trace matched. Both adapters ran with the D3D12 debug layer and reported zero errors or warnings for the new draws and control. No skips.

$tests = '^(compute_mesh_texture|compute_to_pixel|mesh_(textured_draw|depth_pair|indexed_draw|attribute_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

All 12 focused CTest entries passed in Debug and all 12 passed in Release. The documentation link check passed.

Evidence and scope

The producer and graphics fixtures are source-built synthetic inputs under the project’s MIT license. The change measures the raw-buffer-to-texture handoff and the final draw on D3D12.

Developed with Codex.

**@⁠RonLogic** on GitHub · 2026-11-22 18:09 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/658) `RonLogic:test/compute-mesh-texture` → `main` · +179 −18 · 6 files · 1 commits · merged 2026-11-22 18:36 UTC ## Change Refs #218. Reuse #633’s translated indexed mesh, PARAM0 UVs and `image_sample_lz` pixel shader. A synthetic gfx1013 compute producer writes two packed RGBA8 rows at byte offsets 0 and 256 to a default-heap raw UAV. The direct command list transitions it to copy source, copies the rows into a 2×2 texture, transitions that texture to pixel-shader-resource state, and draws. The fixture reads back the final render target and mesh export trace. The test exercises two palettes with the same mesh and pixel shaders. The updated draw dispatches both producers, then binds the newer texture. The control dispatches both and binds the older texture while keeping the newer reference. ## Verification At `24bd62e` on Windows 11 build 26300.9974, the RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818) matched all 1,024 pixels for both palettes. The stale binding produced exactly 276 pixel mismatches while all 748 clear pixels and the mesh export trace matched. Both adapters ran with the D3D12 debug layer and reported zero errors or warnings for the new draws and control. No skips. ```powershell $tests = '^(compute_mesh_texture|compute_to_pixel|mesh_(textured_draw|depth_pair|indexed_draw|attribute_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 ``` All 12 focused CTest entries passed in Debug and all 12 passed in Release. The documentation link check passed. ## Evidence and scope The producer and graphics fixtures are source-built synthetic inputs under the project’s MIT license. The change measures the raw-buffer-to-texture handoff and the final draw on D3D12. Developed with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:09:30 +00:00
github manually merged commit 24bd62e903 into gh-pr/658/base 2026-11-26 22:09:31 +00:00
Author
Owner

@⁠rwZephyr on GitHub · 2026-11-22 18:49 UTC · original

Independent RDNA 4 verification of the merged compute-to-texture fixture on upstream main at dc94dc836e5bbdb684c344c4b1003753644a0fc1, which includes #658. This report is AI-assisted. The tests ran locally from unmodified source.

Windows 11 25H2 x64 build 26200.9974, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.8.2502.8, Python 3.12.10. The renderer reported RX 9070 XT (1002:7550), driver 32.0.32029.2010, and WARP (1414:008c), driver 10.0.26100.9818. Both reported debug_layer=unavailable.

With the workspace-local toolchain loaded, $intakePython pointing to the local Python virtual environment, and the debug CRT DLLs staged next to the Debug renderer, I ran:

$env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT'
$tests = '^(compute_mesh_texture|compute_to_pixel|mesh_(textured_draw|depth_pair|indexed_draw|attribute_draw))_(warp|hardware)$'
foreach ($preset in 'dev', 'release') {
    cmake --preset $preset "-DINTAKE_PYTHON=$intakePython"
    cmake --build --preset $preset --target offscreen_check
    ctest --preset $preset --no-tests=error -R $tests -V
}
& $intakePython -B tests/docs_links_check.py

Debug and Release each passed 12/12 CTest entries with no skips. On both backends and in both presets, each GPU-produced palette matched all 1,024 pixels and the mesh export trace. The stale-SRV control selected the older texture and returned the expected Draw reference mismatch at exactly 276 pixels, with the mesh export trace matching. The documentation link check also passed.

**@⁠rwZephyr** on GitHub · 2026-11-22 18:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/658#issuecomment-7083902212) Independent RDNA 4 verification of the merged compute-to-texture fixture on upstream `main` at `dc94dc836e5bbdb684c344c4b1003753644a0fc1`, which includes #658. This report is AI-assisted. The tests ran locally from unmodified source. Windows 11 25H2 x64 build `26200.9974`, MSVC `19.44.35230`, Windows SDK `10.0.26100`, DXC `1.8.2502.8`, Python `3.12.10`. The renderer reported RX 9070 XT (`1002:7550`), driver `32.0.32029.2010`, and WARP (`1414:008c`), driver `10.0.26100.9818`. Both reported `debug_layer=unavailable`. With the workspace-local toolchain loaded, `$intakePython` pointing to the local Python virtual environment, and the debug CRT DLLs staged next to the Debug renderer, I ran: ```powershell $env:XBOX2WINDOWS_ADAPTER = 'RX 9070 XT' $tests = '^(compute_mesh_texture|compute_to_pixel|mesh_(textured_draw|depth_pair|indexed_draw|attribute_draw))_(warp|hardware)$' foreach ($preset in 'dev', 'release') { cmake --preset $preset "-DINTAKE_PYTHON=$intakePython" cmake --build --preset $preset --target offscreen_check ctest --preset $preset --no-tests=error -R $tests -V } & $intakePython -B tests/docs_links_check.py ``` Debug and Release each passed 12/12 CTest entries with no skips. On both backends and in both presets, each GPU-produced palette matched all 1,024 pixels and the mesh export trace. The stale-SRV control selected the older texture and returned the expected `Draw reference mismatch` at exactly 276 pixels, with the mesh export trace matching. The documentation link check also passed.
This discussion has been locked. Commenting is limited to contributors.
No description provided.