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

Merged
RavenCurseBurg merged 1 commit from upstream-pr/2387 into main 2026-11-25 14:56:07 +00:00
RavenCurseBurg commented 2026-11-25 14:50:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T14:50:30Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6607210323 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2387). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T14:50:30Z. --- ## 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).
upstream-sync closed this pull request 2026-11-25 15:01:55 +00:00
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!2379
No description provided.