shader: verify mesh and pixel readback after swapping two CBVs #557

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

@⁠RonLogic on GitHub · 2026-11-22 11:55 UTC · original
RonLogic:test/mesh-descriptor-swap → main · +173 −26 · 8 files · 2 commits · merged 2026-11-22 12:47 UTC

Refs #218. This implements the independent descriptor-swap draw requested for mesh-stage work and reuses the mesh readback harness and #544 packed color program.

Two separate constant-buffer resources are bound as b0 and b1 through a shader-visible descriptor table. The translated mesh reads depth from b0 and horizontal translation from b1, while the translated pixel shader reads color from b0. The test keeps the input bytes and compiled shaders fixed and exchanges only the two descriptor slots.

  • Baseline: a red 32×32 target with mesh depth 0.25.
  • Swapped: eight columns of clear pixels, 24 columns of green, and mesh depth 0.75.
  • The old pixel reference fails at all 1,024 pixels with the current mesh trace. The old mesh reference fails the trace check with zero pixel mismatches.

On Windows 11 build 26300.9974, all 10 related mesh draw tests passed on the RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818). Both positive draws reported zero D3D12 debug warnings or errors on each adapter. The documentation link check passed. The LLVM fixture round-trip is registered for the Linux CI job.

ctest --preset dev --no-tests=error -R "^mesh_(entry_draw|indexed_draw|attribute_draw|pixel_pipeline|descriptor_swap)_(warp|hardware)$" -V

AI-assisted: yes.

**@⁠RonLogic** on GitHub · 2026-11-22 11:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/557) `RonLogic:test/mesh-descriptor-swap` → `main` · +173 −26 · 8 files · 2 commits · merged 2026-11-22 12:47 UTC Refs #218. This implements the independent descriptor-swap draw requested for mesh-stage work and reuses the mesh readback harness and #544 packed color program. Two separate constant-buffer resources are bound as b0 and b1 through a shader-visible descriptor table. The translated mesh reads depth from b0 and horizontal translation from b1, while the translated pixel shader reads color from b0. The test keeps the input bytes and compiled shaders fixed and exchanges only the two descriptor slots. - Baseline: a red 32×32 target with mesh depth 0.25. - Swapped: eight columns of clear pixels, 24 columns of green, and mesh depth 0.75. - The old pixel reference fails at all 1,024 pixels with the current mesh trace. The old mesh reference fails the trace check with zero pixel mismatches. On Windows 11 build 26300.9974, all 10 related mesh draw tests passed on the RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818). Both positive draws reported zero D3D12 debug warnings or errors on each adapter. The documentation link check passed. The LLVM fixture round-trip is registered for the Linux CI job. `ctest --preset dev --no-tests=error -R "^mesh_(entry_draw|indexed_draw|attribute_draw|pixel_pipeline|descriptor_swap)_(warp|hardware)$" -V` AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:01:36 +00:00
github manually merged commit 08f94f4d97 into gh-pr/557/base 2026-11-26 22:01:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.