startup: count acceleration-structure refusals by name in the slot 70 census #2800
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2808"
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 RenzoWit35 on 2026-11-26T11:01:25Z.
Change
publish_as_srvinsrc/startup_stubs/d3d12_memory_srv.inlpassesas_srv_refusal_name(refusal)(as_unaligned,as_not_placed,as_wrong_state) torefuse_memory_srv, which callsmemory_srv_census.note. Neithermemory_srv_reasons(memory_srv_census.h) norSLOT70_REASONS(tools/startup/triage_run.py) listed them, so both reports folded them into "other".gpu_written_resourceand beforebuffer_unavailable(the orderdevice_memory_srvreaches them), with a group comment in the style of the existing ones.memory_srv_reason_has_shape: the three reasons keep no shape. The acceleration-structure path does not read the resource description (memory_srv_refusalskips the readability check for such a view, andresolve_as_srv_desctakes only the location and view), so a "shape" built from it would describe whatever the caller left in that argument. This matches the existing exclusions for reasons that do not depend on the description. Question for review: if you would rather keep shapes for these, drop the three extra lines inmemory_srv_reason_has_shape.tests/startup_memory_srv_census_check.cppandtests/startup_memory_srv_diag_check.py, and the sentence indocs/startup-runtime.mdthat lists the reasons without a shape.gpu_written_resourceshift by three. Nothing uses the indexes outsidememory_srv_census.h(lookups are by name).Verification
git grep -n -e refuse_memory_srv -e as_srv_refusal_name -- srcon origin/main. Every reason the.inlcan log: the 16 already listed, plus the three above.console_address_holdreturns onlyconsole_layout_xg_rows,console_layout_without_footprints,console_layout_beyond_xg_size. No other name is missing from either list.tests/startup_memory_srv_census_check.cpp(CTeststartup_memory_srv_census): iterates every nameas_srv_refusal_namereturns (stops at "none"), requires an index belowmemory_srv_reason_count, no shape, and the name in a fresh report withother 0. The hard-coded summary line also changed.tests/startup_triage_run_check.py: the three names added to the every-reason case list, plus a check that reads the names frommemory_srv_as.hand requires them inSLOT70_REASONS.out\pe-env\Scripts\python.exe -B tests\startup_triage_run_check.py:startup triage_run checks: 0 failed.cmake --build out/build/dev --target startup_memory_srv_census_checkthenctest --test-dir out/build/dev -R '^startup_memory_srv_census$': passed.cmake --build out/build/dev --target startup_stream_consumerthenctest -R '^startup_memory_srv_diag_(warp|supported_control_warp)$': both passed (this check parses the census report line).SLOT70_REASONSthe check fails with 4 failures (reported list lacks them, three "SLOT70_REASONS lacks ..." lines).git show origin/main:src/startup_stubs/memory_srv_census.hfails (3x "acceleration-structure refusal has its own census reason", "as_unaligned is reported by name", "summary").Evidence and follow-up
_hardwarevariants ofstartup_memory_srv_diag, the full CTest suite, the Linux CI Python list as a whole. The census has no_controltarget of its own; the controls above were run by hand.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:07:21Z.
Review: COMMENTED
Review of head
68fdf7ec(comment only).Checked against origin/main:
as_srv_refusal_nameinmemory_srv_as.hexactly (as_unaligned,as_not_placed,as_wrong_state); order inmemory_srv_reasonsandSLOT70_REASONSmatches.as_srv_refusal_name, and the Python test reads them from the header, so a fourth refusal that is not listed fails.memory_srv_census.handtriage_run.pyhold the list; the summary line in the C++ test and the docs sentence were updated.Commands run locally (Linux):
python3 tests/startup_triage_run_check.py-> 0 failedpython3 tests/docs_links_check.py-> ok;python3 tests/bidi_controls_check.py-> ok;git diff --check origin/main...HEAD-> cleanas_wrong_statefromSLOT70_REASONSmakesstartup_triage_run_check.pyfail (2 failures); restored afterwards.Not run here: the C++ census test (needs the Windows build); a Win2025 run follows.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T11:09:06Z.
Win2025 WARP receipt for head
68fdf7ec(no update needed, up to date).Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
68fdf7ec18c06b1c72b22594beaa0b93364002d0:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):30.36s(configure2.27s)ctest --preset dev -R 'startup_memory_srv_census|startup_memory_srv_diag|startup_triage_run' --parallel 6 --no-tests=error --output-on-failure): 6/6 passed (3.46s:startup_memory_srv_census0.02s,startup_triage_run0.67s,startup_memory_srv_diag_supported_control_warp0.79s,startup_memory_srv_diag_warp0.78s,startup_memory_srv_diag_hardware0.83s,runtime_startup_triage_run_cli_check3.29s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_memory_srv_census_check startup_stub_xcrdapi -- -j 2):50.63s(configure1.93s)ctest --preset release -R 'startup_memory_srv_census|startup_memory_srv_diag|startup_triage_run' --parallel 6 --no-tests=error --output-on-failure): 6/6 passed (2.49s:startup_memory_srv_census0.02s,startup_triage_run0.46s,startup_memory_srv_diag_warp0.64s,startup_memory_srv_diag_supported_control_warp0.64s,startup_memory_srv_diag_hardware0.65s,runtime_startup_triage_run_cli_check2.35s)tests/startup_triage_run_check.pyok (0.4s)sccache: 2/16 hits; wall93.7sReal-GPU run not available (RunPod stopped).
AI-assisted; commands listed were executed locally.