Repository navigation
docs/d3d12_command_objects.md: drop the duplicated five-word-dispatch block - #5564
evilclanker9000 wants to merge 1 commit into
Conversation
|
Reviewed 451b5d1 (claims checked against main 561b65a, docs tests on Linux, Python 3.14.8): pass
AI-assisted (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 451b5d1.
python -I -m pytest tests/test_docs_links.py tests/test_docs_repo_paths.py -q-> 8 passed.git diff --checkclean.
The deleted paragraph is the shorter first copy of the five-word-dispatch text. The retained section (docs/d3d12_command_objects.md:568) has the same four sites, the four slot-80 fallback sites (0x149ba, 0x1525d, 0x153b4, 0x1d047), both W values, the "FSR never writes this form" note and the +0x143 paragraph. No facts lost; the paragraph that follows still reads correctly. No blockers.
|
Verified against main 561b65a: the five-word-dispatch block really does appear twice on main (a stray copy near line 580 plus the canonical section near 621 — confirmed in main's source), and the merged tree keeps exactly one copy with all facts (W values, slot-80 fallback, +0x143) intact. compileall green; no test references the file. Checks queued. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
docs/d3d12_command_objects.md§3.5a carried the five-word-dispatch material twice: 51345fc re-added the "The BVH builder also writes a five-word dispatch" sentence, its three bullets and the "Byte+0x143is console-runtime state" paragraph right in front ofIt sets a flag byte at +0x140..., while the same material already sits, in fuller form (with the fallback call sites0x149ba,0x1525d,0x153b4,0x1d047), at 568-582. The splice also cut the list-object paragraph in two:It sets a flag byte...continuesa dispatch four words (...), so a reader met the five-word dispatch in the middle of that sentence chain and again 40 lines later.This drops the 12 duplicated lines (527-538). The paragraph now reads as 3da355d wrote it and the five-word dispatch keeps the newer, more detailed copy.
Test
Docs-only change; no GPU and no game files needed.
Duplicate scan over
docs/(identical non-table lines >= 40 chars, per file), before:After: no
d3d12_command_objects.mdhit except the repeated| Slot | Byte offset | Method | SDK line |header of the four distinct tables (§2.1, §2.2 device, §2.2 fence, §2.3) and the two distinct RVA tables.Doc tests in this worktree, all exit 0:
Notes
I kept the newer copy at 568-582 because it carries the four fallback call-site RVAs and the "stays inferred" wording the older copy lacks, and removed the older one. Nothing unique was in the removed lines: the sentence, both paragraphs, and the
Wvalues all appear verbatim later in the same subsection.No GPU needed.
AI-assisted.