d3d12: the memory hook names its own placeholder holes so the guards' walk stops re-asking them under Wine (D3D12-WATCH-PLACEHOLDER-NAMES) #3256
Open
github-bot
wants to merge 21 commits from
github-bot/gh-3256 into main
AGit
pull from: github-bot/gh-3256
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!3256
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3256"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@z3r0rc on GitHub · 2026-12-02 22:46 UTC · original
z3r0rc:d3d12-watch-placeholder-names→main· +2371 −183 · 7 files · 21 commits · openClaimed in the coordination issue as:
D3D12-WATCH-PLACEHOLDER-NAMES— claim comment #2570 (comment-7360919453).Depends on: #2896 and #3154 (this builds on neither, but overlaps both textually — see "Relation to open work"; whoever lands second rebases).
Coordination: claim in #2570, "D3D12-WATCH-PLACEHOLDER-NAMES".
Problem, measured. Under Wine the guards' per-frame walk of a guarded range asks the kernel
about every hole region it cannot name. For a hole of the runtime's own
xmemreservations —reserved without commit, later partly committed — Wine's kernel answers the placeholder probe
with nothing, so the region stays unnamed forever and the walk re-asks it every pass. Census
counters on a steady world (RTX 4090, Wine 11.23, same exe A/B on the arm alone) show a median
of 11,428 hole questions a frame with the name off and 2 with it on; offline a mapped-block
asking prices ~900-2,000 ns, sizing the family at 3.5-9.3 ms of submitting-thread CPU a frame.
The fps delta did not rise above scene variance in the windows run; the claim here is the
removed storm and the pinned geometry, not a frame-time number.
The fix says the word the kernel will not:
watch.rsgains aPLACEHOLDERSbit registry and a new notice,title_memory_placeholder(at, len);placeholder(block)becomes hook-named OR the oldkernel probe — the fallback stays exactly as it was and the first touch of a range still
goes through it.
xmemnames its own uncommitted reservations (MEM_RESERVEwithoutMEM_COMMIT: the64 KiB arena and the 0x42000 heap) at the
VirtualAllocit wraps, and re-names blocks atits hide and single-page re-hole sites, where a block becomes a hole again.
including a len-0
title_memory_freed, which is how both of the hook's releases say it.LEONIDA_PLACEHOLDER_HOOK=0(fixture-pinned to the walk's re-ask) makes it A/B-able inone binary.
New tallies split kernel askings from guard-walk questions on the asking line and name the
hook-named population, so the family stays measurable; an acceptance pin fixes the shape of
views_of's answer (one entry per page asked, in order, never deduped or joined) because aconsumer that wants spans joined joins them itself.
Offline fixtures, all green under Wine with no GPU and no game files:
asks once — questions follow REGIONS, not blocks;
placeholder-naming probe so a real Windows box never false-fails where the kernel answers);
runtime — the refresh must report it ALONE, keep the neighbour a hole it asks about once,
guard neither and publish nothing;
bounded with its warning pinned silent, and the runtime's own word (an unmap or commit)
re-arms the re-ask through the walk;
merge fails the partial-fill pin; trusting unnamed holes as held fails the first pass.
Tested with
cargo xwin test -p leonida-gpu --features diagnostics,dlss --target x86_64-pc-windows-msvcunder Wine 11.23: 788 passed / 5 failed / 70 ignored, and the5 failures are the SAME tests that fail on bare current
mainin a control run of theunmodified base (779 passed / 5 failed / 60 ignored) — Wine-environment placeholder, overlay-
and stack-walk families, none touched by this branch; the branch adds 9 passing tests and no
new failures.
leonida-hle: 247 passed / 2 failed, matching the base. The 11,428 -> 2 censuswas measured same-exe A/B on the counter arm alone in a logged window. Separately, operator
play windows on this exact build (arm on, then arm off via
LEONIDA_PLACEHOLDER_HOOK=0):clean exits, no device faults, no visual regressions, no difference noticed in play.
Relation to open work (complementary purpose, real textual overlap — whoever lands second
rebases): #2896 edits
title_memory_freed/title_memory_changedand the standing-ask tests(rest-state clearing on unmap/free); #3154 edits
xmem.rs's allocation path (title addressrange below 2^37).
GPUs tested: n/a — no GPU tests in this change (pure CPU/offline fixtures); the live census
windows ran on RTX 4090 (AD102), NVIDIA proprietary driver 620.73.04, CachyOS x86_64,
Wine 11.23, vkd3d-proton master.
AI-assisted: yes — an OpenCode coding agent (Qwen3.8-Flash-Next 125B, locally quantized IQ3_S
pack) under a human operator; the diff, fixtures and red/green evidence were additionally
audited by a separate read-only reviewer agent before posting. No game content anywhere.
mainand merges cleanly.@merzleckeier on GitHub · 2026-12-02 22:53 UTC · original · reviewed
Test and merge scope check on
e7aad1d4. The diff adds ten#[ignore]cases inwatch.rs, matching the change from 60 to 70 ignored in the reported suite totals. The normal D3D12 workflow does not select ignored tests. Several comments point atfork/dev/rusttest.sh, which is absent from the PR tree. Could you document how a reviewer can run the relevant acceptance cases from a public checkout in separate processes, and include the exact-head results for those cases? The aggregate suite result does not verify the ignored cases.I also checked that this head merges with
mainat16243cd6, which already includes #3154. The other declared overlap is current:git merge-treeagainst #2896 atc9c6b103conflicts inwatch.rs.@MoonEyes on GitHub · 2026-12-03 00:02 UTC · original
RUN (in game, batch of nine pull requests), each head merged with
git merge --no-ffonto main81efe4566, in one build: #313674bd1bcd4, #315653c3100ce, #3206d024194b3, #3248efd21d867, #3256e7aad1d4c, #32623643c2879, #2851b83b0b375, #312589bf1d328, #2642164506d01. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851'sLEONIDA_TITLE_MEMORY_SCALE, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only.AI-assisted (Claude Code).
@fiestorra on GitHub · 2026-12-03 00:12 UTC · original
VERIFY-3256 — Windows nativo: la documentación es exactamente lo que el generador escribe
e7aad1d4c—d3d12/docs/switches.md, 1 line (682 names→683, a row forLEONIDA_PLACEHOLDER_HOOK)For a generated document the only verification that means anything is this, and it passes:
Regenerating from the branch's own sources produces a byte-identical file — so what is committed is what the generator writes, not a hand edit that happens to look right.
And that matters more than usual here, because the document says so itself: "No CI job keeps it up to date: run the command again, or
--check, when you need it." A document that nothing keeps in sync is exactly the one that drifts, and this pull request is the drift being paid off.What it documents —
LEONIDA_PLACEHOLDER_HOOK=0and a re-wordedLEONIDA_ASK_GAP_KBrow — comes from the branch'swatch.rs, which is why the "time" of this review is the generator agreeing with the code.What I could not test
Written with an AI assistant.
e7aad1d4c3to61d8ed0aa0@z3r0rc on GitHub · 2026-12-03 01:30 UTC · original
Both asks are fair, and the fix rides this push.
Running the ten cases from a public checkout. The tallies they pin are per-process, so each
case needs its own process; one command per case:
(or run the built test binary the same way; under Wine — our runner uses Wine — the ten need no
device and no DXC staging; on Windows natively they use the real kernel APIs directly. Each
ignored case's own comment now names this command.)
One exception, and the reason on that case now says it:
the_ask_budget_of_the_placeholder_off_armis a CHILD — it asserts the parent handed it
LEONIDA_PLACEHOLDER_HOOK=0before the first hookread. Run its live parent
the_off_arm_sends_the_hook_s_holes_back_to_the_kernel, whichre-runs the binary with that variable and echoes the child's numbers.
Exact-head results at
61d8ed0aa(rebased onto current maind5b30be1c; Wine 11.23): thenine cases pass standalone; the parent above passes with its child's budget printed. Aggregates
at this head: gpu 801 passed / 5 failed / 70 ignored, hle 250 passed / 2 failed / 2 ignored —
all seven failures are the known Wine-substrate families (placeholder-naming trio, WARP overlay
"Invalid parameter", REMAP_HLSL d3dcompiler refusal, ws2_32
WSAConnectByList, xgamesave pair),none new.
The head also moved
e7aad1d4c→61d8ed0aa: the rebase onto current main, plus a commit thatrenames test attributes and docstrings to name the public run command (merzleckeier's ask), and
a comment-only sweep of internal note-IDs out of the sources. No behaviour change except the
LEONIDA_PLACEHOLDER_HOOK=0off arm itself, which is inert unless the variable is set.@MoonEyes thanks for the batch run. The covered
e7aad1d4cvs the new61d8ed0aadiffers by therebase onto current main (your
81efe4566batch tree already ran our carried content), thetest-attribute renames, and comment scrubbing — no runtime behaviour change. Your PASS should
carry; but per your own caveat a moved head deserves its own stamp, so if you want to re-run,
say the word and we will hold the merge for it.
AI assistance disclosure
Assisted by Qwen3.8-Flash-Next (OpenCode agent) per CONTRIBUTING.md; the runs above were driven by the agent under operator supervision.@fiestorra on GitHub · 2026-12-03 01:54 UTC · original
Both asks are fair, and the fix riding this push is the right shape — thank you for taking them together rather than one and leaving the other.
What I will re-run when it lands (the same two commands, so the record is comparable):
The byte comparison is the one that matters for a generated document: "the generator writes what is committed" is a claim that can be tested on the tree, whereas "it looks right" cannot — and a
--checkthat only counts names would pass over a row whose wording drifted.And a note for the next person who regenerates it:
--outrewrites the file in place, so running it and thengit diff --statis the whole check — no copy of the old file is needed. That is why I compared hashes rather than diffing against a saved copy.@fiestorra on GitHub · 2026-12-03 01:54 UTC · original
Re-verified at
61d8ed0aa: still byte-identical, still--check0The push is here and it does what you said — the same two commands, on the new head:
729 names now, against the 728 I measured on
e7aad1d4c— so the push added a switch and regenerated the document with it, which is the right way round: the count moved because the source did, and the file is still exactly what the generator writes.And the byte comparison is what makes that a statement rather than a hope: a hand edit that matched the count would pass a number check and fail this one.
From my side this is verified and I have nothing to ask. The one thing worth keeping for whoever regenerates it next is the procedure:
--outthengit diff --stat— an empty diff is the whole check, and no copy of the old file is needed.61d8ed0aa0toa3ab0a50fa@z3r0rc on GitHub · 2026-12-03 02:07 UTC · original
The red
d3d12 (windows-latest)job was my bug, not the branch:a_write_through_another_view_is_reported_at_the_guarded_oneread the diagnostics tallies without a feature gate, andASKSis only compiled underdiagnostics- so a plaincargo test --workspace --exclude xtask(nodiagnostics) fails to compile the lib test with E0425. Every other census reading in this module is already gated behind the same feature; these readings leaked past it. The head moves toa3ab0a50faf648171ead8ad9bb68b6e1fb273f9e: the readings and the one assert over them are now gated like the rest, and the guard/alias behaviour that test pins is still exercised and asserted without the feature. I reproduced the job's exact command line offline before and after: red (E0425), green. Same head also replaces internal shorthand labels left in comments, assert messages and commit messages with plain English - no pin and no number changes; the only content deltas from the reviewed chain are the feature gate and that wording.@MoonEyes since the head moves, your earlier stamp is void - if the shape still looks right, a re-stamp would be appreciated.
@MoonEyes on GitHub · 2026-12-03 03:00 UTC · original
RUN (in game, batch of two pull requests), each head merged with
git merge --no-ffonto maind15e048a7, in one build: #3256a3ab0a50f, #327863eb3d6e2. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x,-PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; arrival in the world was driven by keys and not checked on pictures;
-PrecompileUsedwas used, so the default start (every known pipeline precompiled) was not exercised. #3256 was also run in a batch on its earlier heade7aad1d4c; this run covers its current head. #3278 changes what happens after a stall at the start; this run had no such stall (0 hang watchdog or GPU stall lines), so it shows the change leaves the usual start as it was, not that it mends the stalled one.AI-assisted (Claude Code).
a3ab0a50fato7b7b261df1@z3r0rc on GitHub · 2026-12-03 15:03 UTC · original
Head moved to
7b7b261df. What changed sincea3ab0a50f: it is rebased on current main — the one conflict was the switch page against #3318's regeneration, and the code hunks are untouched (nothing upstream touchedwatch.rs/xmem.rsbetween the two bases); the switch page now comes from the #3318 generator, so theLEONIDA_PLACEHOLDER_HOOKrow is produced, not hand-written (as #2642/#2643 do); the commit messages and a few code comments lost our internal shorthand, and the A/B fixture pair is renamedthe_off_switch_*(comment and test-name lines only, nothing behavioural); and one counters slot this tree never writes was dropped. The in-game pass ata3ab0a50fcarries over in substance, but the head move voids the review stamps — a fresh VERIFY on the new head would be welcome, and a re-run of the in-game batch when convenient. CI is re-running.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.