Repository navigation
tests: draw a slot 57 depth-only pair into D32 and compare depth with the CPU (Part of #2413) - #2680
Merged
Merged
Conversation
The null target carries no channel; its only effect is the vm discard emitted before it. Same change as the open R0Y00#2026, so a rebase onto it drops this commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e (Part of R0Y00#2413) A pixel stage whose only export is the null target was refused with 'slot 57 mesh with a depth-only pixel stage is not covered'. It now translates with the pair: the pixel stage has no SV_Target, keeps the vm discard of an alpha test, and the manifest has an empty targets line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… of R0Y00#2413) The slot 57 depth-only profile is a pixel stage whose only export target is null. A null export before or after an mrt0, mrtz or param0 export passed the role check and was published; it is now refused in translate_mesh57 before any source or manifest is written. The general pixel path keeps its mixed forms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A source-built gfx1013 pixel stage narrows EXEC with v_cmpx and exports only to the null target. The pair is drawn twice into a D32 target cleared to the sentinel 1.0 (depth test LESS) on WARP and hardware; colour must stay cleared and depth must match the CPU rasteriser, so covered and discarded pixels are told apart. A reference without the depth writes and the same mesh without the discard must each fail. Offline controls refuse the drawn stage with a colour export before its null export (the slot 57 mixed-export refusal) and a mismatched pair in both directions, and check that pending_keys needs both bytecodes. Part of R0Y00#2413
R0Y00
approved these changes
Nov 26, 2026
R0Y00
left a comment
Owner
There was a problem hiding this comment.
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.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 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:c8020002 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 startup: translate slot 57 mesh requests with a depth-only pixel stage #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.