Repository navigation
Conversation
tedin7
reviewed
Nov 25, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head 57dc4b3 (read-only pass, no Windows run by me).
Scope read: git diff --stat origin/main...HEAD shows 4 files (CMakeLists.txt, docs/experiments.md, src/startup_stubs/d3d12_xs_device.cpp, tests/startup_indirect_draw_indexed.cpp), 114 insertions, 7 deletions. Title is neutral, PR is mergeable, one commit.
Commands executed locally:
python3 tests/docs_links_check.py-> self-test passed, 18 Markdown files and 433 links checked.python3 tests/bidi_controls_check.py-> self-test passed, 1562 files, no bidirectional controls.git diff --check origin/main...HEAD-> clean.
Findings
- P1: none.
- P2: none.
- nit (
src/startup_stubs/d3d12_xs_device.cpp,device_create_pipeline_placeholder): the IID check now runs before the placeholder log, so a wrong-IID call no longer logs the first two placeholder lines. Behavior is unchanged and this seems intended. Worth one doc sentence only if someone greps those logs. - nit (
is_fixed_mesh57_descriptor): the bounds lambda duplicates the 16-byte to 64-KiB span rule. Please confirmrequest_slot57_meshind3d12_draw.inluses the same limits. If it doesn't, the two can drift, so a shared constant would be safer. - nit (
CMakeLists.txt):startup_indirect_mesh_create_result_*is registered before theset_tests_propertiesfor..._request_*. This is harmless, but the property blocks could be grouped.
What I checked by reading
- The opt-in is gated by
X2W_REFUSE_FIXED_MESH, so the default path still returns the placeholder. - The E_POINTER and null-output clearing order is unchanged, and the output is cleared before E_NOTIMPL.
- Unsupported IID returns E_NOINTERFACE ahead of the refusal.
- The descriptor predicate needs a registered root signature kind, VS ptr and len both zero, a readable MS span of 16 to 65536 bytes, and a PS span that is either fully absent or equally bounded.
- The fixture covers each of those branches: wrong root kind, missing root, VS ptr, VS len, MS ptr/len, unreadable spans, PS ptr/len, null and unreadable descriptors, and the default vs opt-in matrix.
Limits of this review
- I did not run the C++ fixture. It is Windows-only (D3D12), and I did not request a Win2025 run. The mutation step was therefore not done. I only read the test matrix and judged that it would kill dropping the root-kind, VS-empty or span-bound conditions. Please treat that as unproven until the Windows job is green.
- CI at review time: the Linux Python checks job and the gfx1013 job (step "Check machine-code inputs with LLVM 15") are failing, and the Windows job was still running. The PR touches no Python or assembly fixtures, so these look unrelated to the diff, but I could not read the logs. Please confirm with a rerun or against main before merging.
AI-assisted; commands listed were executed locally.
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.
Refs #1760 and #2253.
With
X2W_REFUSE_FIXED_MESH=1, slot 57 returnsE_NOTIMPLand clears the output for a fixed descriptor with a registered root, no VS, and a readable MS span of 16 bytes through 64 KiB. A PS can be absent or use the same bounds. Callers that handle the result can select a different creation path. With the switch unset, the existing placeholder is returned. Ordinary VS+PS and malformed fixed descriptors retain the legacy result, and an unsupported IID still takes precedence withE_NOINTERFACE.Release passed 14/14 tests without skips on Windows 11 build 26200.9974. The debug layer was enabled on WARP 10.0.26100.9818 and NVIDIA GeForce RTX 4060 Laptop GPU 32.0.16.1656. The fixture checks paired and MS-only creation with the switch on and off, exact HRESULT and output-pointer behavior, a wrong IID, normal VS+PS, and malformed spans and roots. The existing request and dispatch fixtures also passed.