`xenora probe` and `xenora imports sync` defaulted to a folder named after
one commercial game. Give both one shared default, `diagnostics/probe`, and
ignore it in Git. Keep the old ignore rules so existing local reports stay
out of commits.
Closes#364
Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
Address review on the delay-import probe change:
- Read only descriptors inside the delay import directory's declared
size, and require that size to hold the terminating empty descriptor.
- Require each descriptor's DLL name, import address table and import
name table to be present and to start in section data, with a
diagnostic naming the missing field.
- Leave delayed rows out of the xenora imports sync backlog, so its
totals stay ordinary-only.
Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
From independent review:
- The summary said "not executable" for instructions that merely have
no semantic decoding; a decoded program can still fail compilation.
Say "without semantic decoding".
- When identification stops early, a branch target past the identified
prefix was reported invalid although its boundaries are unknown;
report it as unverified.
- The VOP3 and VOP3P literal probes used 1.0, which LLVM encodes as an
inline constant (8 bytes), so neither exercised a literal. Use
0x3f800001 and 0x3c01 and assert the 12-byte encoding and trailer.
- The coverage JSON test now also checks the document's shape.
Refs #183, #184
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
At 5450612 the generated table held 1,460 forms while the docs and PR
said 1,465; 1493dcf added the five literal-only forms the LLVM oracle
found, so the table, xenora shaders coverage (text and JSON) and docs
now agree on 1,465 across 21 families. Nothing checked that they stay
in step. Test the JSON and text totals and per-family sum against
FORMS and SEMANTIC_FORMS, and the counts stated in docs/research/rdna2.md
and CHANGELOG.md against FORMS.len().
The branch inspection fix for #183 is the previous commit 9640269.
Fixes#183, fixes#184
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
xenora shaders inspect passed each identified instruction to decode() on
its own. decode() checks that every branch target lands on an instruction
in the stream it was given, and a lone branch has no other instruction to
land on, so every supported s_branch and s_cbranch_* was reported as
"unsupported operands" (3 of 15 rows in bitwise-branch.bin).
Add decode_at(), which decodes one instruction at its real stream offset
without the stream-wide target check, and DecodedInstruction::branch_target().
inspect now identifies the whole stream first and checks each branch
target against those boundaries, reporting a bad target separately.
decode() is rebuilt on decode_at() with unchanged behaviour.
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
The decoder knew 25 hand-matched forms, so any other instruction stopped
decoding with no record of what it was or how long it was. A two-stage
generator now reduces AMD's public RDNA 2 XML to all 1,460 base forms,
with a committed snapshot so CI can check the generated table offline.
identify() finds any form's exact length, including literal, SDWA, DPP
and NSA words, and the shaders CLI reports discovered against executable
forms so metadata coverage is never read as GPU support.
Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
The static PE probe commit left main failing CI at every step after formatting:
- cargo fmt: apply rustfmt to cli/main.rs, loader/probe.rs and
loader/tests/probe_static.rs.
- clippy: collapse the four nested if / if-let blocks in probe.rs into
let-chains (edition 2024); no behaviour change.
- build: make the probe library match its two callers.
run_probe_and_export now takes the PE bytes and a ProbeConfig (the
CLI's config was previously ignored in favour of the default),
ProbeReport.pe is renamed to ProbeReport.parsed, and
pe::IMAGE_SCN_CNT_CODE (0x00000020, PE/COFF section flag) is added.
- tests: gate test_guest_dbt_first_rendered_frame_with_metal behind a new
xenora-loader gpu-tests feature. CI's paravirtual Metal device lacks
Apple family 7; the two CPU-only DBT tests in the same file keep
running in CI. scripts/test-gpu.sh now runs the gated test.
Signed-off-by: Andre Encarnacao <andreencar@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Add a read-only probe command that inventories PE metadata, imports, relocations, TLS, and entry-point instruction coverage
- Export compatibility diagnostics as CSV, JSON, and Markdown
Add gfx1030 decoding, semantic validation, Metal shader generation, and an independent CPU interpreter for three reproducible compute fixtures. Include native Metal tests, LLVM fixture verification, and the existing CI and Phase 01 handoff.
Verified formatting, all-features Clippy and tests, LLVM decoding, native ARM64 linkage, and all three demo fixtures with Metal API and shader validation enabled.
Signed-off-by: Ranveer Soni <git@ranveersoni.me>