Commit Graph

10 Commits

Author SHA1 Message Date
f216975939 Merge origin/main (f9f3ec4c6) into the carry of #1050
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Gavin Bloom <g4v1nbl00mt4mu29@tamu.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:19:16 +01:00
fb5d04b3f9 Merge origin/main into #1050 (carry prep)
runtime/CMakeLists.txt: kept both test blocks (console_list_records and main's gpu_label_memory).

Co-authored-by: Gavin Bloom <209302503+baldyb4242@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:41:07 +01:00
a589b5764d docs/boot_leads: say which leads are done and which have open pull requests (DOC-BOOT-LEADS-STATUS)
BL-2 (#913), BL-5 (#882) and BL-6 (#891) are merged, but the page still
listed them as open hypotheses, and it did not point at the open pull
requests for BL-3 (#1050) and BL-4 (#1166). Add a status table at the top
and a Status line per lead: the merged commit, where the result is
recorded, and what is still open (the Wine/Proton reproduction for BL-2,
the geometry-shader payload choice for BL-5, retail numbers for BL-6).
The leads' implementation notes stay as they were. docs/README.md's entry
names the status table instead of "hypotheses, not measurements".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R3jaqKsiawUYYVBKWHmGr8
2026-11-28 09:17:16 +00:00
da60135590 docs, tests: clarify descriptor address translation suite and verify production paths (BL-4)
Addresses review feedback from KernelSmoker and Deedlyy on PR #1166:

- Converted tests/test_descriptor_address_translation.py to standard-library unittest, allowing it to run dependency-free with python -I.

- Added TestProductionImplementationConformance checking runtime/src/gfx10_descriptors.h and tools/rdna2spirv.py against documented bitfield layouts.

- Preserved all 30 test cases running in 0.05 s.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-26 00:46:55 +03:00
83a90abc76 docs, tests: record descriptor heap census and provide 32-bit address translation contract suite (BL-4) 2026-11-26 00:45:32 +03:00
675c3fb1b9 runtime: replay the console list's inline records as their vtable calls (BL-3)
A console DLL writes a command into the list object while it has room instead
of calling the vtable (docs/d3d12_command_objects.md §3.5a). The list proxy
avoids this today by pinning the cursor at its limit; an inline write the
title makes without checking first would be lost.

console_list_records.h decodes the measured records (the two dispatch headers,
root constants, descriptor table, root CBV/SRV/UAV, pipeline record) into the
fallback calls (slots 14, 80, 37, 39, 35, 41/43/45, 25), using a root-argument
header table this runtime defines. An unknown or truncated record stops
decoding with its offset instead of being skipped.

console_list_records_test models the DLL independently from the doc and runs
1,200 seeded sequences at six cursor limits: the inline path (replayed before
each vtable call and at Close) and the all-vtable path give the same calls.
Eight planted decoder bugs each fail it.

Not yet wired into runtime/shims/d3d12_xs_device.cpp (Windows-only, not
buildable here). No game files, no GPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:12:09 +01:00
a190d8340a docs/boot_leads.md: BL-1 Where names the measured commit, Status says answered on main and pending retail
The Where entry still said the integration tree "carries a fix for stop 4 that main does not", which reads as a
missing fix. It now names the commit the retail measurement was taken at (867d922f) and says the integration
tree clears stop 4 with #4313. Status opens with "answered on main by b7a3fed28 and 4710549af ... the retail
confirmation is still pending", and names #4313 (carried by #321 and #64) as an alternative design.

Tested: tests/test_docs_*.py, 47 passed (test_docs_links green); the repo-consistency set, 566 passed, 5 skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-24 10:37:07 -05:00
ba142e7ff5 docs: BL-1, main already clears the /GA index-0 stop; boot.md and the stop table say what it carries
docs/boot_leads.md sends a reader to implement BL-1 because "the retail run on main ends in the stop-4 shape".
That line comes from retail_boot_intel_host.md, measured at main 867d922f. b7a3fed28 (the loader rewrites a
/GA executable's index-0 TLS reads) landed on main after that, and 4710549af after it, so the lead as written
describes a main that no longer exists. The integration tree's #4313 is a second design for the same stop
(the runtime's own EXE gives up index 0 at process start), not a fix main is missing.

- boot.md, triage step 3: what the stop looks like, what load() does about it, the log line that counts the
  rewritten reads, the switch that turns the rewrite off, and the two tests.
- retail_boot_chain.md, row 4: #4313 is what the measured tree had; main carries b7a3fed28 and 4710549af.
- boot_leads.md, BL-1: a Status entry with the same, and what is left of the lead.

Nothing was run on the retail executable for this (it needs game files), and all three places say so.

Tested at main a28927849: tests/test_docs_*.py, 47 pass; the repository-consistency set (test_cmake_*,
test_shader_stage_resume, test_runtime_paths, test_docs_*, test_make_game_*, test_check_no_game_data*,
test_run_semantic_tests), 566 pass and 5 skip. scripts/check_no_game_data.py on the three files: clean.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
2026-11-24 10:32:26 -05:00
10342f4808 docs/boot_leads: link CONTRIBUTING.md from docs/ as ../CONTRIBUTING.md
The new page linked CONTRIBUTING.md relative to docs/, where it does not
exist, so test_docs_links fails on main.
2026-11-24 15:47:57 +01:00
8f05e09e22 docs: add boot_leads.md, open boot leads and how to implement them 2026-11-24 09:45:14 -05:00