Repository navigation
test: cover slot 35 table selection and invalidation at Dispatch - #2874
Conversation
Port the synthetic Dispatch controls from NiiRoZz#1 as requested in upstream R0Y00#2470. Test only. AI-assisted (Hermes Agent / OpenAI Codex).
|
Independent Windows MSVC x64 Release verification at |
KelboLive
left a comment
There was a problem hiding this comment.
test: cover slot 35 table selection and invalidation at Dispatch
Excellent test addition. The slot 35 descriptor table selection was under-tested, and this covers the critical cases:
- Binding a wrong pair at the heap start with the correct pair at index 2
- Changing the root or view heap after binding to trigger refusal at the table lookup (not an earlier check)
- Preserving the table when the same heap is rebound
Observations
- ✅ The test logic correctly constructs the descriptor arrays in "wrong" order and uses offsets to test lookup behavior
- ✅ The improved error handling (checking stderr for
device removedrather than relying on return code 77) is a good practice update - ✅ The consumer refactor (
probeparam ondispatch()) cleanly separates probe behavior from normal test runs - ✅ The
startup_stream_consumer.cppchanges carefully reconstruct descriptor layouts for the new test modes
Comments
The single comment on this PR appears to be from a maintainer. If it contains review feedback, those changes should be addressed before merge.
Verdict: Solid test-only PR. Ready to merge once any maintainer feedback is incorporated.
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed 491b214c against main 22107932. This test-only patch exercises the nonzero table offset with an intentionally swapped pair at heap start, then changes the root or heap while restoring entry constants so the exact table-lookup refusal is observable. The fixture checks a healthy device and a completed fence before readback.
I rebuilt startup_stream_consumer and d3d12_xs_shim, then ran ctest --preset <dev|release> --no-tests=error -V -R '^startup_(compute_dispatch|compute_live_retry|slot67_indirect_dispatch)_(hardware|warp)$'. Each preset passed 6/6 without skips. Both adapters matched all 320 output words and preserved all 320 sentinels on the root and heap change refusals. Windows 11 26200.9974, WARP 10.0.26100.9818, RTX 4060 Laptop driver 32.0.16.1656, debug layer enabled for the focused Dispatch cases. Hosted Windows, Linux and gfx1013 checks are green. Local Release /O2 passed.
Test-only port of NiiRoZz/Xbox2Windows#1 to
main, as requested in #2470. The translated Dispatch path and recorder fix are already onmain(#2532 and #2636).Release on
b505c32b20fee62bafd51f86a87a26a6f48b5ecb: 23 passed, no failures or skips, including the focused Dispatch checks on RX 7900 XTX (driver32.0.32015.7029) and WARP. Three separate fixture fault injections on WARP were caught by the corresponding readback oracle, and both focused checks passed again after restoring the fixture.AI-assisted (Hermes Agent / OpenAI Codex).