Commit Graph

8 Commits

Author SHA1 Message Date
255156c2c8 d3d12_guid_sites, d3d12_iid_scan: report an unreadable header or import table (D3D12-TOOLS-ERROR-REPORTING)
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.
2026-11-24 16:15:03 +01:00
37b33de3cd d3d12_iid_scan: read all d3d12_xs.dll import descriptors and bound RVA file offsets (#6339)
Squash-merged after review of PR #6339 - d3d12_iid_scan: read all d3d12_xs.dll import descriptors and bound RVA file offsets
2026-11-23 08:15:43 -06:00
9ba9cadcaf Merge pull request #4482 from luisbaker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:07 -05:00
87cbb935e9 d3d12_iid_scan: an unreadable image or header is one ERROR line, not a traceback
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>
2026-11-23 02:40:30 +01:00
15c58580c0 d3d12_iid_scan: the --json write reports failures as one line (review follow-up)
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.
2026-11-22 21:57:39 -03:00
2ce89fc483 heap_index_census, d3d12_iid_scan: refuse a --json that would replace an input
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.
2026-11-22 19:41:20 -03:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- 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>
2026-11-22 16:14:54 -05:00
56839d2dd9 D3D-350: device slots 8, 9, 12 and 36 cannot be measured from the package
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>
2026-11-22 20:13:37 +01:00