runtime: report unavailable fixed mesh PSOs at creation when opted in #2265
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2273"
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 R0Y00 on 2026-11-25T09:10:24Z.
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.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T09:13:47Z.
Review: COMMENTED
Review of head
57dc4b3ff8(read-only pass, no Windows run by me).Scope read:
git diff --stat origin/main...HEADshows 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
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.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.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
X2W_REFUSE_FIXED_MESH, so the default path still returns the placeholder.Limits of this review
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T09:46:55Z.
Review: COMMENTED
Re-review of head
d789ac715e366377e43761161adef1c0f47fbc2c(previous review:57dc4b3f).What changed: the new head is only a merge of
maininto the branch. The PR's own diff againstmainis still 4 files, +114/-7:CMakeLists.txt,docs/experiments.md,src/startup_stubs/d3d12_xs_device.cppandtests/startup_indirect_draw_indexed.cpp. Merge state is MERGEABLE.Commands run locally on the worktree:
git diff --stat origin/main...HEAD: 4 files, +114/-7, as above.git diff --check origin/main...HEAD: clean.python3 tests/docs_links_check.py: self-test passed, 18 Markdown files and 435 links checked.python3 tests/bidi_controls_check.py: self-test passed, 1576 files, no bidirectional controls.gh pr checks 2273: Linux Python checks pass, Windows build and test pass, gfx1013 fixtures pass. The/O2Windows job and the chart publish job are skipped by design, and nothing fails.Code read (targeted):
is_fixed_mesh57_descriptoronly matches when all of these hold:Anything else keeps the old placeholder result. The default, with the switch unset, is unchanged.
Moving the IID check before the refusal is correct: a wrong IID gives
E_NOINTERFACEand neverE_NOTIMPL. The output pointer is cleared on every early return, and the nulloutandiidchecks come first.The test fixture covers the cases I would want:
ppv, which givesE_POINTER.It checks the HRESULT and the output pointer together.
The ctest entries use
SKIP_RETURN_CODE 77and a 30 s timeout, like the sibling tests. The fixture skips the mesh-capability probe so it runs on any adapter. The docs line and the ctest regex indocs/experiments.mdare updated to match.Findings: P1=0, P2=0.
startup_indirect_mesh_create_result_*runs the same command asstartup_indirect_mesh_request_*and differs only by the environment variable. That is fine, but a short comment next to it inCMakeLists.txtwould help readers.request_slot57_meshwould stop the two copies drifting apart.Mutation: not run. The new logic is Windows-only D3D12 code and the new test needs a Windows runtime, so I could not build or execute it on this Linux host. I checked by reading that dropping the VS-empty, root-kind or span-bound clause would fail the matching
field(...)orwrong_rootcontrol. I did not run a Windows build. The Windows CI job at this head passes, and I ran no Win2025 job myself.No blockers from my side.
AI-assisted; commands listed were executed locally.