tests: measure desktop culling and front-face winding with opposite triangles #2252
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2260"
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-25T08:34:04Z.
Add the independent desktop reference requested in #1999, item B. One draw submits two opposite-winding triangles into an 8×4 float target.
SV_IsFrontFaceselects green or red, and the known clear value marks uncovered or culled pixels. The Python reference compares all 32 pixels for each combination of none/front/back culling and CW/CCW winding. Four wrong-state draws must differ at exactly 6, 6, 12 and 12 pixels. This uses explicit desktop PSO fields and makes no assumptions about guest registers.Reproduce with
cmake --build --preset dev --target offscreen_checkandctest --preset dev --no-tests=error -V -R '^raster_winding_(warp|hardware)$'. The fixture prints the adapter, driver and debug-layer status, and rejects any warning or error when the layer is enabled.The hosted runner also exposes the Microsoft Basic Render Driver through hardware enumeration. The hardware case returns CTest skip for that adapter. A physical-adapter run with Graphics Tools enabled is still needed for the remaining review item. The command above prints all the evidence in one run. Initial debug-layer validation · Final source build
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T08:38:42Z.
Review: COMMENTED
Review of head
dea8b47d1aca9bc5ea790fbc464ae201d15115e8. P1: 0. P2: 0.Review:
check_startup_flat_paramdefault to the previous behavior (no cull, clockwise, 3 vertices), so existing callers are unchanged. The new CLI arguments are validated, with self-test cases.Commands executed locally:
python3 tests/docs_links_check.py: passed, 18 files, 428 links.python3 tests/bidi_controls_check.py: passed, no bidirectional controls.git diff --check origin/main...HEAD: clean.verify()fromtests/raster_winding_reference.pyagainst a stand-in renderer. The stand-in is an independent shoelace and edge-function model I wrote locally. Correct tables: all 6 state images match, and the 4 wrong-state draws differ by 6, 6, 12 and 12 pixels. MutatingEXPECTED[("front","cw")]from ".B" to "FB" makes the test FAIL ("6 of 32 pixels differ").x2w_pipe.py win2025 2260 --scope direct --targets offscreen_check --regex '^(raster_winding|startup_flat_param)_':raster_winding_warpand the threestartup_flat_param_*tests).raster_winding_hardwareskipped because the VM has WARP only.Build and test on Windows: SUCCESS.Note: a run on a physical adapter with Graphics Tools is still outstanding, as the author states. This does not block the WARP gate.
AI-assisted; commands listed were executed locally.