tests: draw a slot 57 depth-only pair into D32 and compare depth with the CPU (Part of #2413) #2680
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2680
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2680/head"
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?
@roansystemlabs on GitHub · 2026-11-26 01:47 UTC · original
roansystemlabs:startup/2413-d32-depth-draw→main· +184 −3 · 3 files · 6 commits · merged 2026-11-26 02:10 UTCPart of #2413
Depends on #2606 and should be merged after it. Until then this branch also carries its commits; the change here is the last commit only (
120eef54), on top of the #2606 head8bd527a8. It changes no translator code. It adds the source-built depth-only draw that #2606 leaves out, in the shape the maintainer asked for in #2413:What changes
tests/startup_mesh57_skeleton_check.py:tests/startup_mesh57_skeleton.s: (wordsc8020002 7c2200f0 f8001890 00000000 bf810000, as printed by clang 15-cc1as -target-cpu gfx1013 -show-encoding);depthmode that draws the pair twice withoffscreen_check --mesh-depth-pairinto a D32 target cleared to the sentinel 1.0, depth test LESS. Colour must stay cleared and depth must match the CPU rasteriser. The four triangles cover four cases: the second draw behind the first, the second in front, a first draw discarded, and both discarded;targetsline, nopsline);pending_keysmust keep the pair pending until both.ms57.csoand.ps57.csoare complete;exp mrt0before its null export must stop atslot 57 pixel stage mixes the null export with another export, leaving only<key>.fail. The other mixed forms are covered bystartup_mesh57_depth_only_check.pyand are not repeated here;slot 57 mesh request key mismatch, nothing else published);CMakeLists.txt:startup_mesh57_skeleton_depth_{warp,hardware}(timeout 60, skip code 77).docs/experiments.md: the #2606 paragraph now describes the draw.Results
At
8bd527a8+ this commit, Windows 11, Release, MSVC 14.44, DXC 10.0.26100.0:startup_mesh57_depth_only,startup_gfx2hlsl_watchandstartup_gfx2hlsl_export_null{,_draw_warp,_draw_hardware}pass too.startup_mesh57_skeleton_depth_hardware: NVIDIA GeForce RTX 3070 (10de:2484, driver 32.0.16.2101).startup_mesh57_skeleton_depth_warp: Microsoft Basic Render Driver (1414:008c, 10.0.26100.9818).Both ran with the debug layer enabled,
debug_errors=0 debug_warnings=0, and nothing was skipped. Of 259 covered pixels, 181 keep a written depth and 78 keep the sentinel only because of the discard. Against the CPU reference:depth_mismatches=0, colourmismatches=0. Negative controls in the same run, on both adapters:depth_mismatches=181, exit 1;depth_mismatches=134, exit 1.Translator mutants at the same head, each reverted:
vmignored for the null export inStage.export): the baseline draw fails with 134 depth mismatches on both adapters, and the offline check andstartup_mesh57_depth_onlyfail.Not covered
.ms57/.ps57results yet (R1).binarymode (llvm-mc -show-encoding) was not run here.AI-assisted.
@R0Y00 on GitHub · 2026-11-26 02:08 UTC · original · approved these changes
I integrated main after #2606 landed. The delta now contains only the D32 fixture, its test registration and documentation. WARP and RTX matched all 1,024 depth pixels with zero debug errors or warnings. Removing depth writes yields 181 mismatches, and removing the discard yields 134. The pre-existing mesh draw and the host depth, skeleton and watcher controls also passed after integration.