tests: verify exact front-face winding through slot 86 streams #2387

Manually merged
github merged 1 commit from gh-pr/2387/head into gh-pr/2387/base 2026-11-27 00:47:26 +00:00
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 14:50 UTC · original
RavenCurseBurg:tests/stream-rasterizer-winding → main · +27 −9 · 3 files · 1 commits · merged 2026-11-25 14:56 UTC

Change

Refs #1999 (B), #1567 and #2260. The slot-86 stream test previously accepted either ordering of the front-cull and back-cull images, and both stream subobject types always used a clockwise front face. The source-built vertex shader emits the counterclockwise triangle (-1,-1), (3,-1), (-1,3). The updated fixture checks every byte of the 8×4 scissored image for both cull modes, each front-face winding, and both RASTERIZER and RASTERIZER1. Its request-only and original eight-output command forms remain usable. The four additional draws reuse the same device, shaders and render target.

Verification

I built the fixture and shim from 45f42d76f34c0075b926f40b44022e69afe30862. The Windows Server 2025 WARP run ran ctest --test-dir out/raster -V --no-tests=error -R '^startup_stream_rasterizer(_ignore)?_warp$': 2/2 passed with the D3D12 debug layer enabled and zero skips. The positive test checked eight full cull/winding images, the dropped subobject, the fractional depth-bias refusal, and both mixed orders.

The same run compiled two temporary shim mutations:

Runtime change Previous fixture Updated fixture
Ignore FrontCounterClockwise exit 0 exit 1 at ccw_back
Exchange front and back culling exit 0 exit 1 at front

On local Windows, I checked the source stamp and SHA-256 manifest for the two unmodified build outputs and ran python -B tests/startup_stream_rasterizer_check.py <exe> <backend> <mode> for WARP (10.0.26100.9711) and RTX 4060 (32.0.15.9579). Both apply runs passed. Both ignore controls reported the intended readback difference and returned 1. The local debug layer was unavailable. python -B tests/docs_links_check.py checked 462 links, python -B tests/bidi_controls_check.py checked 1,675 tracked files, and git diff --check passed.

The existing in-tree synthetic shaders and the new cases are covered by the repository license. This is a translated pipeline stream readback; native register-block decoding is separate work in #1999.

AI assistance: Codex, GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 14:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2387) `RavenCurseBurg:tests/stream-rasterizer-winding` → `main` · +27 −9 · 3 files · 1 commits · merged 2026-11-25 14:56 UTC ## Change Refs #1999 (B), #1567 and #2260. The slot-86 stream test previously accepted either ordering of the front-cull and back-cull images, and both stream subobject types always used a clockwise front face. The source-built vertex shader emits the counterclockwise triangle `(-1,-1), (3,-1), (-1,3)`. The updated fixture checks every byte of the 8×4 scissored image for both cull modes, each front-face winding, and both RASTERIZER and RASTERIZER1. Its request-only and original eight-output command forms remain usable. The four additional draws reuse the same device, shaders and render target. ## Verification I built the fixture and shim from `45f42d76f34c0075b926f40b44022e69afe30862`. The [Windows Server 2025 WARP run](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45637652547) ran `ctest --test-dir out/raster -V --no-tests=error -R '^startup_stream_rasterizer(_ignore)?_warp$'`: 2/2 passed with the D3D12 debug layer enabled and zero skips. The positive test checked eight full cull/winding images, the dropped subobject, the fractional depth-bias refusal, and both mixed orders. The same run compiled two temporary shim mutations: | Runtime change | Previous fixture | Updated fixture | | --- | --- | --- | | Ignore FrontCounterClockwise | exit 0 | exit 1 at `ccw_back` | | Exchange front and back culling | exit 0 | exit 1 at `front` | On local Windows, I checked the source stamp and SHA-256 manifest for the two unmodified build outputs and ran `python -B tests/startup_stream_rasterizer_check.py <exe> <backend> <mode>` for WARP (10.0.26100.9711) and RTX 4060 (32.0.15.9579). Both `apply` runs passed. Both `ignore` controls reported the intended readback difference and returned 1. The local debug layer was unavailable. `python -B tests/docs_links_check.py` checked 462 links, `python -B tests/bidi_controls_check.py` checked 1,675 tracked files, and `git diff --check` passed. The existing in-tree synthetic shaders and the new cases are covered by the repository license. This is a translated pipeline stream readback; native register-block decoding is separate work in #1999. AI assistance: Codex, GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:47:25 +00:00
github manually merged commit 45f42d76f3 into gh-pr/2387/base 2026-11-27 00:47:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.