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

Merged
RonLogic merged 1 commit from upstream-pr/658 into main 2026-11-22 18:36:02 +00:00
RonLogic commented 2026-11-22 18:09:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T18:09:18Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6545882093 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/658). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T18:09:18Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:44:11 +00:00
rwZephyr commented 2026-11-24 06:48:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T18:49:55Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7083902212 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/658#issuecomment-7083902212). Originally posted by [rwZephyr](https://github.com/rwZephyr) on 2026-11-22T18:49:55Z. --- 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.
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!652
No description provided.