Repository navigation
Conversation
…ath in the negative control, adapter assumptions, and a gap check that tested nothing Five findings from review, four of them real defects: 1. compare.py called traceback.print_exc() without importing traceback, so an unexpected exception raised NameError inside the handler and exited 1 - the code for 'the pixels differ'. Verified: a 200000-deep nested manifest now exits 2 with 'this is a bug in compare.py, not a pixel mismatch'. 2. negative-control.ps1 copied native/ into native/negative-control/ and configured it without -DCONFORM_SPEC_DIR, so CMake's default ../spec resolved inside native/ where no spec exists. Configure would have failed and the script reported BUILD FAILED, meaning the negative-control evidence could not be reproduced from this tree at all. It now passes the repository's spec directory and checks the configure exit code. 3. verify.ps1 asserted this machine's adapter names (AMD Radeon, RTX 5070 Ti), so it failed on any other machine even when every pixel check passed. The names are now parameters; without them the two checks are skipped and the render checks still run. 4. The indexed gap check sat at (128,240), which is below both triangles' vertical span and is clear whether or not the index buffer is read - it proved nothing. Moved to (128,200), inside the span: the indexed draw leaves it clear, and drawing the six vertices in order fills it, so the check now catches an ignored index buffer. Confirmed against the contract geometry at pixel centres. 5. The status section claimed every drawn scene stops at CreateRootSignature. That is stale: main now parses RTS0 in CreateRootSignature and runtime/test/d3d12_draw_test.cpp already compares indexed-draw readback. The section now says what is actually missing - running these scenes through the shim - instead of quoting a measurement taken against an older commit. Also: six scenes, not seven. The table listed six and the prose said seven.
Contributor
Author
|
Transcripts from The negative control now configures and runs; before this commit it stopped at CMake's |
1 task 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.
Four review findings were fixed after #3343 merged at its first revision, so
mainstill carries them. This is the fix commit that was on the branch but not in the merge.compare.py: calledtraceback.print_exc()without importingtraceback, so an unexpected exception raisedNameErrorinside the handler and exited 1 — the code for "the pixels differ". Now exits 2 withthis is a bug in compare.py, not a pixel mismatch.native/scripts/negative-control.ps1: configured its throwaway copy without-DCONFORM_SPEC_DIR, so CMake's default../specresolved tonative/spec, which does not exist. The negative control could not run from this tree. It now passes the repository's spec directory and fails loudly if configure does not succeed.native/scripts/verify.ps1: asserted this machine's adapter names, so it reportedBROKENanywhere else. They are parameters now and the checks are skipped when unset; the render checks still run.spec/scenes.h: theindexedgap check sat at (128,240), below both triangles' vertical span, and was clear whether or not the index buffer was read. Moved to (128,200), inside the span: the indexed draw leaves it clear and drawing the vertex buffer in order fills it.README.md: six scenes, not seven, and the status section no longer quotes a measurement taken before the shim's draw path landed.Verification:
The native rebuild and the negative-control transcript are not in this description: the Windows machine used for them is offline. They will be added here when it is back.