shader: verify a GPU compute buffer consumed by translated pixels #555

Manually merged
github merged 3 commits from gh-pr/555/head into gh-pr/555/base 2026-11-26 22:01:26 +00:00
Owner

@⁠RonLogic on GitHub · 2026-11-22 11:40 UTC · original
RonLogic:test/compute-to-pixel → main · +149 −7 · 6 files · 3 commits · merged 2026-11-22 13:00 UTC

Refs #218. This independent GPU test pairs the compute store lowering from #539 with the existing scalar-buffer pixel color fixture. The compute pass writes the color words to a default-heap UAV at byte offset 16. After the transition to constant-buffer state and the dispatch fence, graphics binds that same GPU address as a CBV. The CPU only reads back the final RGBA32F target.

Two source-built producer variants produce different expected colors with the same pixel shader. The CPU reference compares all 4,096 pixels and all channels for each palette. The stale-binding control runs both producers and then deliberately binds the earlier buffer. The first pixel differs on both backends, with (0.25, 0.75) observed where (0.5, 0.125) was expected in red and green.

The shared interfaces are the offscreen_check operation dispatch and pixel fixture readback. The EXE integration stays in the milestone work in #218. This change adds the independent compute-to-graphics data handoff test.

Windows x64 at 109ae9e on 96e836d:

ctest --test-dir out/build/followup --no-tests=error -R '^(compute_to_pixel|compute_store_aot|pixel_aot_buffer_color)_(warp|hardware)$' -V
python -B tests/docs_links_check.py

All six tests passed on RTX 4070 and WARP, and the documentation link check passed.

AI-assisted: yes.

**@⁠RonLogic** on GitHub · 2026-11-22 11:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/555) `RonLogic:test/compute-to-pixel` → `main` · +149 −7 · 6 files · 3 commits · merged 2026-11-22 13:00 UTC Refs #218. This independent GPU test pairs the compute store lowering from #539 with the existing scalar-buffer pixel color fixture. The compute pass writes the color words to a default-heap UAV at byte offset 16. After the transition to constant-buffer state and the dispatch fence, graphics binds that same GPU address as a CBV. The CPU only reads back the final RGBA32F target. Two source-built producer variants produce different expected colors with the same pixel shader. The CPU reference compares all 4,096 pixels and all channels for each palette. The stale-binding control runs both producers and then deliberately binds the earlier buffer. The first pixel differs on both backends, with `(0.25, 0.75)` observed where `(0.5, 0.125)` was expected in red and green. The shared interfaces are the `offscreen_check` operation dispatch and pixel fixture readback. The EXE integration stays in the milestone work in #218. This change adds the independent compute-to-graphics data handoff test. Windows x64 at `109ae9e` on `96e836d`: ```powershell ctest --test-dir out/build/followup --no-tests=error -R '^(compute_to_pixel|compute_store_aot|pixel_aot_buffer_color)_(warp|hardware)$' -V python -B tests/docs_links_check.py ``` All six tests passed on RTX 4070 and WARP, and the documentation link check passed. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:01:24 +00:00
github manually merged commit ce606c1d6d into gh-pr/555/base 2026-11-26 22:01:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.