tests: verify exact front-face winding through slot 86 streams #2379
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2387"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 ranctest --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:
ccw_backfrontOn 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). Bothapplyruns passed. Bothignorecontrols reported the intended readback difference and returned 1. The local debug layer was unavailable.python -B tests/docs_links_check.pychecked 462 links,python -B tests/bidi_controls_check.pychecked 1,675 tracked files, andgit diff --checkpassed.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).