reprend #2085: d3d12: one guarded copy per run of adjacent written geometry tiles (RT-GEOMETRY-READBACK-RUN-MERGE) #2733

Merged
OreoFR merged 4 commits from upstream-pr/2733 into main 2026-11-30 16:25:13 +00:00
OreoFR commented 2026-11-30 13:39:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:39:05Z.


Carries #2085 by @BubsMcgee, because it conflicts with main after #2566 and the reminder to merge main (https://github.com/ProjectLeonida/mandy/pull/2085#issuecomment-7256005699) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.

Item: RT-GEOMETRY-READBACK-RUN-MERGE-CARRY (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original item RT-GEOMETRY-READBACK-RUN-MERGE).

What this branch is

  • The author's branch at 82169e0e0, unchanged (no rebase, author commits kept).
  • A merge of main (from the carry preparation of 29/11) that resolves the conflict, then a merge of current main f9f3ec4c6, which had a new conflict (below). Both merge commits carry Co-authored-by the author.
  • Nothing else: the change itself is the original PR's; see #2085 for what and why, and the verifications posted there.

What conflicted and how it was resolved

  • runtime/shims/d3d12_geometry_views.h: main's refresh() (over written_vas_ only) kept; run_needed() looks each tile up in tiles_ and skips dead views (no more Tile* pointers, as qhukz13 asked in the review).
  • New with f9f3ec4c6: runtime/test/geometry_views_test.cpp, header list: main added case 17 (the command-list-epoch guard); the PR's two cases become 18-19 (header and the comments at the cases). d3d12_geometry_views.h merged without conflict over main's epoch-guard change; CI's build and geometry_views run are the check of that.

#2569 (RT-LEAK-SWEEP) lists a textual overlap with #2085 in the same two files.

Tests

  • On this branch (main f9f3ec4c6 merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run).
  • Earlier merge: geometry_views passes, ctest 501; red (main's header): 2 FAIL (the 128 KiB copy and the 1 MiB cap).
  • python -I scripts/check_no_game_data.py on every file this PR changes: clean.
  • CI on this PR covers the rest (C++ build and ctest, the full translator suite).

Depends on: none.

Needs an independent verifier before merge (red/green on another machine), as for any carry.

AI-assisted (Claude Code, oreofr-agent).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5566384982 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2733). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-30T13:39:05Z. --- Carries #2085 by @BubsMcgee, because it conflicts with `main` after #2566 and the reminder to merge `main` (https://github.com/ProjectLeonida/mandy/pull/2085#issuecomment-7256005699) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped. Item: `RT-GEOMETRY-READBACK-RUN-MERGE-CARRY` (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original item `RT-GEOMETRY-READBACK-RUN-MERGE`). ### What this branch is - The author's branch at `82169e0e0`, unchanged (no rebase, author commits kept). - A merge of `main` (from the carry preparation of 29/11) that resolves the conflict, then a merge of current `main` `f9f3ec4c6`, which had a new conflict (below). Both merge commits carry `Co-authored-by` the author. - Nothing else: the change itself is the original PR's; see #2085 for what and why, and the verifications posted there. ### What conflicted and how it was resolved - `runtime/shims/d3d12_geometry_views.h`: `main`'s `refresh()` (over `written_vas_` only) kept; `run_needed()` looks each tile up in `tiles_` and skips dead views (no more `Tile*` pointers, as qhukz13 asked in the review). - New with `f9f3ec4c6`: `runtime/test/geometry_views_test.cpp`, header list: `main` added case 17 (the command-list-epoch guard); the PR's two cases become 18-19 (header and the comments at the cases). `d3d12_geometry_views.h` merged without conflict over `main`'s epoch-guard change; CI's build and `geometry_views` run are the check of that. #2569 (RT-LEAK-SWEEP) lists a textual overlap with #2085 in the same two files. ### Tests - On this branch (`main` `f9f3ec4c6` merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run). - Earlier merge: `geometry_views` passes, `ctest` 501; red (`main`'s header): 2 FAIL (the 128 KiB copy and the 1 MiB cap). - `python -I scripts/check_no_game_data.py` on every file this PR changes: clean. - CI on this PR covers the rest (C++ build and `ctest`, the full translator suite). Depends on: none. **Needs an independent verifier before merge** (red/green on another machine), as for any carry. AI-assisted (Claude Code, oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
KelboLive commented 2026-11-30 14:54:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T14:54:14Z.


Independent check on Windows (not the author), at 696e72877.

  • Configured the branch's runtime and built geometry_views_test (MSVC 14.52.37025, Windows SDK 10.0.26100).
  • Ran it: 89 checks, 0 failures — exit 0, including the new adjacent-run merge cases and the epoch-guard cases.

Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, NVIDIA RTX 4070 Ti SUPER (driver 621.01).

No regressions seen. Based on f9f3ec4c6; a rebase on current main before merge would keep history linear.

AI-assisted: yes (opencode).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7282112527 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2733#issuecomment-7282112527). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T14:54:14Z. --- Independent check on Windows (not the author), at `696e72877`. - Configured the branch's `runtime` and built `geometry_views_test` (MSVC 14.52.37025, Windows SDK 10.0.26100). - Ran it: **89 checks, 0 failures** — exit 0, including the new adjacent-run merge cases and the epoch-guard cases. Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, NVIDIA RTX 4070 Ti SUPER (driver 621.01). No regressions seen. Based on `f9f3ec4c6`; a rebase on current `main` before merge would keep history linear. AI-assisted: yes (opencode).
MoonEyes commented 2026-11-30 15:47:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T15:47:59Z.


Verified by MoonEyes (another owner than OreoFR) on head 696e72877 merged with main be7690805: Windows 11, MSVC 2022 x64, RelWithDebInfo, RTX 4060 8 GB (NVIDIA). ctest -R ^geometry_views$: 1/1 passed; with d3d12_geometry_views.h of main it fails on "two adjacent written tiles are one 128 KiB copy" and "a 32-tile adjacent run is two 1 MiB copies".

Unit test only: no run of the title (this is the Vulkan path).

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7283608213 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2733#issuecomment-7283608213). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T15:47:59Z. --- Verified by MoonEyes (another owner than OreoFR) on head `696e72877` merged with `main` `be7690805`: Windows 11, MSVC 2022 x64, RelWithDebInfo, RTX 4060 8 GB (NVIDIA). `ctest -R ^geometry_views$`: 1/1 passed; with `d3d12_geometry_views.h` of `main` it fails on "two adjacent written tiles are one 128 KiB copy" and "a 32-tile adjacent run is two 1 MiB copies". Unit test only: no run of the title (this is the Vulkan path). AI-assisted (Claude Code).
MoonEyes commented 2026-11-30 16:25:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T16:25:09Z.


Merging. Head 696e72877 merges cleanly with main bd466f883 and does not force a rebase of #2566. Vulkan path: Moon's written OK for this PR without a run in the game; ctest red and green on Windows 11, checked by another person too. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7284634282 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2733#issuecomment-7284634282). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T16:25:09Z. --- Merging. Head `696e72877` merges cleanly with `main` `bd466f883` and does not force a rebase of #2566. Vulkan path: Moon's written OK for this PR without a run in the game; ctest red and green on Windows 11, checked by another person too. Merged by MoonEyes. AI-assisted (Claude Code).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!2733
No description provided.