d3d12_guid_sites ignored an explicit --header that does not exist and exited 0 with no known GUIDs.
Both tools now exit 2 with an ERROR line for a missing header and for a header with a malformed GUID.
d3d12_iid_scan keeps the d3d12_xs.dll names read before a parse error and warns on stderr instead of
returning None, so the 'imports may be IID data' warning is not lost.
New tests use hand-made files: missing header, malformed GUID, unreadable import table, and a good header.
scan() and read_iids() opened their files outside any handler, so a missing image, a
folder given as an image, or a header that exists but cannot be read ended the run in a
traceback. Each is now `ERROR: cannot read <path>: <reason>` and exit 2, before --json is
written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same write-failure gap the review round exposed in bvh_match: the report write
was bare, so a missing parent directory left a FileNotFoundError traceback.
Wrap in the OSError one-line convention (exit 2) with a regression over a
nested missing directory.
Both write their report last, after every input has been read, and neither
checked the report path: heap_index_census accepted a path inside the disasm
folder it reads or the carve index beside it, and d3d12_iid_scan accepted an
input image or the --header file. Refuse the alias with the report_paths guard
before anything is opened: one ERROR line and exit 2, as the tools' other
bad-input answers do.
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package ships no D3D12 runtime (d3d12_xs.dll is part of the console OS),
and the device clients it does ship never create a queue, allocator, command
list or fence: neither XboxBvhBuilder.dll nor amd_fidelityfx_upscaler_xbox.dll
contains those IIDs or imports GUID data from d3d12_xs.dll, and none of their
indirect calls at 0x40/0x48/0x60/0x120 is made on the device. The callers are
in the game executable, so the slots stay Open.
tools/d3d12_iid_scan.py reports which ID3D12 IIDs (from the SDK's d3d12.h) an
image contains and what it imports from d3d12_xs.dll, warning on imports that
could be IID data. It prints names and counts only.
docs/d3d12_command_objects.md section 2.1 records the result with counts and
how each column was measured. tests/test_d3d12_iid_scan.py covers the tool on
a hand-written header and hand-built PE images (no game files).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>