listed_raw_twin: return where the host makes no raw twins #2911
Open
github-bot
wants to merge 2 commits from
github-bot/gh-2911 into main
AGit
pull from: github-bot/gh-2911
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!2911
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2911"
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?
@fiestorra on GitHub · 2026-12-01 17:32 UTC · original
fiestorra:raw-twin-skips→main· +12 −2 · 1 files · 2 commits · openThe test says in its own
ignorewhy it exists —"offscreen descriptor probe requiring a host with raw view twins"— and then, on a host without them, compares 0 with 0:assert_ne!(0, 0, "the host must allocate raw twins")cannot tell "this host makes no twins" from "the twins this host makes are wrong", and its message chooses the second.A host that does not make raw view twins is the case the probe does not apply to, and it is exactly what the
ignoreattribute says. So it now returns with a line saying so:which is what the other card probes in this crate already do —
the_table_of_static_samplersreturns when there is no card, and theupchecktests name the variable they need instead of asserting into a wall.Nothing else changes: a host that does make raw twins runs the same probe, the same reads and the same comparisons as before.
Measured on an RTX 4090 with 621.24, where
HostHeap::new(false, 4)makes none:AI-assisted: yes — DeepSeek v4.1 (flash), which ran the whole card suite to find this one.
Written with an AI assistant.
The test says in its own `ignore` why it exists - "offscreen descriptor probe requiring a host with raw view twins" - and then, on a host without them, compares 0 with 0: assertion `left != right` failed: the host must allocate raw twins left: 0 right: 0 which reads as a host that is broken rather than as a probe that does not apply to it. `assert_ne!(0, 0, ...)` cannot tell the two apart and its message does not try. Now it returns with a line saying so, which is what the other card probes in this crate do (`the_table_of_static_samplers` returns when there is no card, and the upcheck tests name the variable they need). Nothing else changes: a host that does make raw twins runs the same probe as before. Measured on an RTX 4090 with 621.24, where HostHeap::new(false, 4) makes none: cargo test -p leonida-gpu --features diagnostics --lib listed_raw_tests -- --ignored --nocapture --test-threads=1 ok, 2 passed; prints "this host makes no raw view twins: the probe does not apply here" Written with an AI assistant.@merzleckeier on GitHub · 2026-12-01 17:52 UTC · original
Independent raw-twin probe matrix at
acd5e00c0+27613ab6b, Win64 under Wine 11.22 and VKD3D-Proton 3.1.0. I ran the exact ignoredlisted_off_alignment_raw_twin_readbacktest withLEONIDA_RAW_VIEWS=0and=1on both AMD Radeon (RADV 26.3.1) and the GeForce RTX 4070 SUPER (620.73.4 as reported by Wine).Main fails at the raw-twin availability assertion in all four cases. With this PR, all four runs print
this host makes no raw view twins: the probe does not apply hereand exit successfully. On these two Wine adapters, enabling the setting still reaches that early return. The evidence covers the unsupported-host path before readback.MEASURED with the offscreen test. AI-assisted (Codex).
@Kal0s-design on GitHub · 2026-12-01 17:59 UTC · original
Verified on Windows 11 on a second card, a different NVIDIA generation from the one in the description, with the native D3D12 driver.
Head
acd5e00c0, which already containsmaind2a564b66.cargo test -p leonida-gpu --features diagnostics --lib listed_raw_tests -- --ignored --nocapture --test-threads=1:listed_off_alignment_raw_twin_readbackprintsthis host makes no raw view twins: the probe does not apply here, anddump_buffer_view_descriptor_bytesstill runs.main's version of the file put back: fails atlisted_raw_tests.rs:33withthe host must allocate raw twins(left: 0, right: 0).So
HostHeap::new(false, 4)makes no raw twins on this host either, and the old assert reported that as a broken host. The return is only taken whenheap.raw == 0, so a host that does make twins runs the same probe as before. I could not exercise that path here.GPUs tested: one NVIDIA card, native driver, model not given.
AI-assisted: yes (Claude Code).
@KelboLive on GitHub · 2026-12-01 18:56 UTC · original · reviewed
Returning here is safe for the only caller: the ignored test is
#[cfg(test)]-only, and the guard precedescpu, the buffers and the firstSetDescriptorHeapsat:101, so no binding or cleanup is skipped, andheapdrops normally. The mutation confirms the guard is the right one — flipping it to!= 0fails at:193with0x80000004vs0x84000004.But it is not the only option, and it costs coverage on exactly the hosts that hit it. On this RTX 4070 Ti SUPER (
heap.raw == 0), the sibling's syntheticheap.raw = 64+ 32 twins fallback (sub_dword...,:305-311) makes the full probe pass 1/1 — I swapped the return for that fallback and got all three biases. So this turns the probe into a no-op on NVIDIA rather than preserving the check. If you keep the return, I would at least prefer the fallback, since the machinery already exists two tests above.Two caveats if it stays:
heap.raw == 0also coversLEONIDA_RAW_VIEWS=0and a regression inprobe_view_limit's 4M-descriptor fit — so a real regression now passes silently. Wording the skip as "raw twins are off" and checkingtwin_bias()(as the sibling does at:299) would narrow that.host().expect(...)at:30, so a machine with no device panics before reaching the guard; #2908'srequire_host()does not touch this test.Non-blocking: shader suite 414/5/0, both ignored tests pass here, and
merge-treewith main is clean. Note #2834 rewrites this same test into alisted_readback(bool)helper — whichever lands second must reapply the guard (or the fallback) there.@merzleckeier on GitHub · 2026-12-01 19:13 UTC · original
Positive raw-twin readback check for the new early return at
acd5e00conmain60f7dcd9, using the exact ignoredlisted_off_alignment_raw_twin_readbackcase under Wine 11.22 / VKD3D-Proton 3.1.0 on RTX 4070 SUPER (620.73.4) and Radeon (RADV 26.3.1).With stock heap limits and raw views enabled, main hit the raw-twin assertion on both adapters. The PR printed its early-return message on both. I then reduced the heap limits in a local test build so these adapters could create the raw twins. On that same build, explicit raw views off still printed the early-return message, and raw views on reached DX12 readback and passed on both adapters. The readback verified listed-twin and public transfers at all three source/target bias pairs (4/12, 8/8, 12/4).
MEASURED with synthetic buffers and a local smaller-heap positive control. AI-assisted (Codex).
@imShangLi on GitHub · 2026-12-02 11:25 UTC · original
VERIFY-2911 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device (only a VMware SVGA virtual adapter; Wine's D3D12 sees only the llvmpipe CPU device and the runtime still makes no host device), no game files
Verdict: PASS. The change is a test-only fix to a card probe: on a host that makes no raw view twins, the probe now returns with a line saying it does not apply, instead of failing
assert_ne!(0, 0, "the host must allocate raw twins")— a message that reads as a broken host. The guard is exactly the condition the test's own#[ignore]names, the probe code on hosts that do make twins is byte-identical to before, and no test in the crate regresses. The one red→green the verifier reported is awatchflake, not this change.head
acd5e00c0f7be26242a18d58ea063bf3798fa45f("listed_raw_twin: return where the host makes no raw twins"), baseorigin/main=a917c54d6aff8c9ef5dda2d8ebf938cb5c693902, merge based2a564b66a96127bc06bb348f3fae52d11e4461e(197 commits behindmain). One file, +8/−1:d3d12/crates/leonida-gpu/src/descriptor/host/listed_raw_tests.rs.1. What it changes
listed_off_alignment_raw_twin_readbackis an offscreen descriptor probe: it places a raw twin for a view that starts 4, 8 or 12 bytes past a 16-byte boundary and runs a compute shader that reads the view's own dwords through the twin (listed_raw_tests.rs:27-223). It is#[ignore]d with the reason"offscreen descriptor probe requiring a host with raw view twins"(:26).The old first lines of the body were
The new body replaces the
assert_ne!with an early return (:33-40):HostHeap::rawis set fromleonida_shader::emit::raw_views()(host.rs:2484, field athost.rs:263with the comment "0: there are none").raw_views()is set toRAW_TWINS = 1 << 21byprobe_view_limit()only whenraw_twins()is on and the host fits a heap of2 * RAW_TWINS = 2^22descriptors (host.rs:2275-2320); otherwise it stays0. Soheap.raw == 0is exactly "the host makes no raw twins" as this runtime determines it, and that is the case theignoreattribute says the probe does not apply to.2. The claims, checked
ignoreattribute says." — Confirmed.#[ignore = "offscreen descriptor probe requiring a host with raw view twins"]at:26, andheap.raw == 0⟺raw_views() == 0⟺ the host makes no raw twins (see the chain in §1). Theignoreand the guard name the same condition.assert_ne!(0, 0, "the host must allocate raw twins")cannot tell 'this host makes no twins' from 'the twins this host makes are wrong', and its message chooses the second." — Confirmed. Whenheap.raw == 0,assert_ne!(heap.raw, 0, ...)isassert_ne!(0, 0, ...), which fails with "the host must allocate raw twins; left: 0; right: 0" — a message about a host whose twins are wrong, for a host that made none. That is the exact misdiagnosis the change removes.assert_ne!→if heap.raw == 0 { ... return; }. Every line after:41(let cpu = ListViews::new()...) is untouched, so a host withheap.raw != 0takes the identical path.host::upcheckand thedump_buffer_view_descriptor_bytessibling probe#[ignore]on the same condition. I did not enumerate every probe; the substantive point (the guard matches theignore) is what matters.d3d12/docs/switches.md:450recordsLEONIDA_RAW_VIEWS("raw twins of the title's slots" withLEONIDA_RAW_VIEWS=0meaning they read the title's slots themselves), which is the switch that turns the raw twins off and thus makesheap.raw == 0. That is the "broader than the stated intent" arm the reviewer flags in §5: the guard also fires when the switch is off, which is the same host condition from the runtime's point of view.3. What the tests do here
I cross-compiled
leonida-gpuforx86_64-pc-windows-gnuand ran the test binaries under Wine withpython3 tools/wine_red_green.py 2911 --crate leonida-gpu(run from/home/shangli/oc-workspace/gta6). Because this pull request changes only a test file, the verifier's red side (merge base + the PR's test hunks) is the same source as the green side, so the run can only show that nothing regressed — it cannot demonstrate the fix.d2a564b66(merge base) + the PR's test hunks--ignored)acd5e00c(PR head)The tool reported 1 red→green, 0 regressions, 3 failing on both sides, 629 passing on both sides, no test present on one side only.
listed_off_alignment_raw_twin_readbackis#[ignore]d, and the verifier runs the test binaries without--ignored, so it is reportedignoredon both sides. Even with--ignored, its first linehost().expect("an active D3D12 device")would panic on this machine:host()returnsNone(host.rs:1223-1232) — Wine's D3D12 (DXVK 2.7.1) finds only the llvmpipe CPU device (Found device: llvmpipe (LLVM 23.1.5, 256 bits)), butHost::create()still fails afterD3D12CreateDevice, so no host device is made. I confirmed this directly: the ignoreddump_buffer_view_descriptor_bytesprobe (alsohost().expect("an active D3D12 device")) panics with exactly that message atlisted_raw_tests.rs:224. The new guard is therefore not exercised here; the author's measurement (RTX 4090, driver 621.24) and the three commenters' verifications (RTX 4070 Ti SUPER, RTX 4070 SUPER + Radeon under Wine, and a second NVIDIA card on Windows 11) are the evidence that on a host without raw twins it prints the message and returns, and on one with them it runs the probe.watchflake, not this PR.watch::tests::a_view_being_split_leaves_its_pages_unguarded_elsewherefailed on the red side and passed on the green. The PR touches onlylisted_raw_tests.rs;watchis a different module, and the same threewatchtests that fail on the merge base (holes_are_known_until_the_runtime_tells,no_mapping_is_lost_between_askers,what_is_left_alone_is_no_known_hole) fail identically on both sides here. So the "red then green" verdict is a false positive of the flakywatchguard-page machinery under Wine without a real GPU, not evidence for this change. I did not repeat the run to measure how often it flips; on the single run it was 1/4watchtests unstable (the 3 others failing both sides).sub_dword_views_null_twins_and_recycled_raw_cbv_clears_bias(the sibling probe,listed_raw_tests.rs:298, which has its ownheap.raw == 0 → heap.raw = 64fallback at:305-311) passes on both sides — so the raw-twin machinery the changed test exercises is exercised by that sibling instead, on hosts with a capped heap.4. Any failure I saw and why it is not this PR
watchfailures (§3) fail on the merge base as well and are environment failures of the guard-page/exception machinery under Wine without a real GPU, exactly as the parent's note says; the PR touches none ofwatch.rs.5. One thing the reviewers said that the change does not address (not a defect)
KelboLive's review (the only review) confirms the return is safe for the only caller and that flipping the guard to
!= 0fails at the probe proper, but notes two things:heap.raw == 0also coversLEONIDA_RAW_VIEWS=0(raw twins off by switch) and a regression inprobe_view_limit's 4M-descriptor fit check, so such a regression would now pass silently instead of failing the probe. That is true:raw_views()stays0both when the host cannot fit2^22descriptors and whenLEONIDA_RAW_VIEWS=0(or whenprobe_view_limitwrongly decides it cannot). Wording the skip as "raw twins are off" and checkingtwin_bias()would narrow it. The author chose the return and did not answer.heap.raw = 64+ 32 twins) makes the full probe pass 1/1 on the same RTX 4070 Ti SUPER where the new guard turns it into a no-op; KelboLive would prefer that fallback since the machinery exists two tests above.These are about how much the probe covers on capped hosts, not about the change being wrong: on a host that genuinely makes no raw twins the probe cannot run, and the change says so instead of failing. I record them so the author can decide whether to switch to the fallback; they do not change the verdict.
6. What I did not check
LEONIDA_RAW_VIEWS=0andtwin_bias()arms: I readraw_twins()(host.rs:2282) andtwin_bias()(host.rs:5390) but did not run the probe under either switch.cargo test --target x86_64-pc-windows-gnuunder Wine 11.21 on Fedora 45; the#[cfg(windows)]path is compiled, but a real Windows ABI/driver is not exercised.leonida-hle,leonida-loader) and the repository's Python suite were not run; the change is confined toleonida-gpu.probe_view_limit's fit check under--ignored: whetherHostHeap::new(false, 4)in this test is the first call that triggersprobe_view_limit(which isOnce-guarded) affectsheap.raw; I read the code but did not observe the ordering in a live run.listed_readback(bool)helper) — I did not read it; whichever lands second must reapply the guard (or the fallback).@MoonEyes on GitHub · 2026-12-02 18:02 UTC · original
Code review only, not built (Windows-only
leonida-gpu). Ready.acd5e00c0, merge based2a564b66, 376 behind currentmain45dc41f95. A trial merge is clean. CI on the head: all 6 checks pass.Review of
d3d12/crates/leonida-gpu/src/descriptor/host/listed_raw_tests.rs:#[ignore]d card probe. On a host that makes no raw view twins (heap.raw == 0), it now prints that the probe does not apply and returns. Before, it failedassert_ne!(0, 0, "the host must allocate raw twins"), which reads as a broken host.#[ignore]reason names. On hosts that do make twins, the probe code is unchanged.--nocaptureoutput.Verdict: ready.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@MoonEyes on GitHub · 2026-12-02 21:38 UTC · original
RUN (independent run on Windows, head
acd5e00c0f7be26242a18d58ea063bf3798fa45f, merged intomain8d82a34ae56ca11e499a26ff1e2c834f09100badwithgit merge --no-ff)Merge: clean, no conflict. The merge changes one file, +8/-1:
d3d12/crates/leonida-gpu/src/descriptor/host/listed_raw_tests.rs. Windows 11, native D3D12 driver, one NVIDIA card (model not recorded), release build,--locked.Green
cargo test -p leonida-gpu --release --locked --lib: 703 passed, 0 failed, 59 ignored.#[cfg(test)]only,host.rs:7115), so I did not run--features diagnostics. No Python test is touched.cargo test -p leonida-gpu --release --locked --lib listed_raw_tests -- --ignored --nocapture --test-threads=1: 2 passed, 0 failed.listed_off_alignment_raw_twin_readbackprintsthis host makes no raw view twins: the probe does not apply hereand returns;dump_buffer_view_descriptor_bytesstill runs and prints its tables.Red
main's version oflisted_raw_tests.rsput back (git checkout origin/main -- <file>), the same command fails:listed_off_alignment_raw_twin_readbackpanics atlisted_raw_tests.rs:33withthe host must allocate raw twins,left: 0, right: 0; result 1 passed, 1 failed. Restored withgit checkout HEAD -- <file>; the tree is clean again.heap.raw == 0changed toheap.raw == 1. The probe then falls through on this host and panics atlisted_raw_tests.rs:193; the mutant is killed (1 passed, 1 failed). Removing thereturnwould behave the same way on a host without twins. I tried no other mutation, there is little else in an 8-line change.Review
docs/switches.mddoes not need regenerating. The guard readsheap.raw, which is 0 whenLEONIDA_RAW_VIEWSis off or the host cannot fit the heap, and that is the condition the#[ignore]reason names.ListViews, the registered buffer and the dispatch are created, so nothing is left to drop or wait on. On a host that makes twins, every line after the guard is the same as before.heap.raw == 0) the sibling's synthetic fallback (heap.raw = 64plus 32 twins,:305-311) makes the full probe pass at all three biases. KelboLive swapped the return for that fallback and measured 1/1 passing. So the return turns the probe into a no-op on NVIDIA; the reviewer prefers the fallback.heap.raw == 0also coversLEONIDA_RAW_VIEWS=0and a regression ofprobe_view_limit's 4M-descriptor fit, so a real regression now passes with only a printed line. The reviewer suggests wording the skip as "raw twins are off" and checkingtwin_bias()as the sibling does at:299.host().expect(...)at:30still panics on a machine with no device, before the guard is reached; #2908'srequire_host()does not touch this test.01df1490c45a1d50693878bc2763bc0f6ed3cbce) edits the same file. Its diff moves this test's body into alisted_readback(bool)helper and adds a second ignored test, so whichever of #2911 and #2834 merges second must put the guard back in the helper (KelboLive says the same). I did not merge the two, so I do not know whether git reports a textual conflict; the merge of #2911 alone intomainis clean (GitHub shows CLEAN, MERGEABLE).Not covered
--features diagnosticsand an in-game run: not run, no shipped code is changed.Verdict
PARTIAL. The behaviour is confirmed (green here and on three other machines), main's version fails with the old message (red), and a mutant of the guard is killed. But the three points of KelboLive's review above are open on this head: the return makes the probe a no-op where a measured fallback runs it fully, a regression of the twin fit would pass silently, and
host().expectat:30still panics with no device. #2834 will also conflict in substance with this test. The verdict becomes PASS when the author answers those points (keep the return and say why, or switch to the fallback) and the overlap with #2834 is settled. No in-game run is posted on this head; since no runtime code changes, I do not hold the verdict on that alone.AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
@fiestorra on GitHub · 2026-12-02 22:05 UTC · original
KelboLive's third point is fixed in
c13dab327; the other two I answer here, and one of them I confirm rather than close.3.
host().expect(...)at :30 — fixed. The probe now returns with a message when there is no device, the same way it returns when the host makes no twins:It is the same shape the second test in the file already used. Run on this machine (
cargo test -p leonida-gpu --lib listed_off_alignment_raw_twin_readback -- --ignored --nocapture): 1 passed and no skip line printed, so this host does make raw twins and the probe body ran fully — the guard did not hide anything here.1. "the return makes the probe a no-op where a measured fallback runs it fully" — the probe's subject is the raw twin (
twin_bias,buffer_opreading the slot's stride word); on a host that makes none there is no measurement to take, and the old assertion compared 0 with 0 and reported "the host must allocate raw twins", which is a false fault on a portable host. What the probe can no longer do is fail there, and that is the trade this PR makes, deliberately.2. "a regression of the twin fit would pass silently" — confirmed, and the fix does not close it. I looked: the only other test that exercises the machinery is
sub_dword_views_null_twins_and_recycled_raw_cbv_clears_bias(not ignored), and whenheap.raw == 0it fabricates 64 raw slots instead of asserting that the host made any. So nothing in the crate asserts that a host which can make twins does make them, and a regression that stopped making them would leave both tests green. That is a real gap and it is older than this PR; closing it needs a test that knows independently whether the host can twin, which is the hard part. I would rather write that here than pretend the skip covers it.On #2834: it edits the same file and I have not rebased onto it; whichever lands second will need the other's file. That is a fact about the queue, not a claim that this PR is ready.
Written with an AI assistant.
@fiestorra on GitHub · 2026-12-02 22:52 UTC · original
The
UNSTABLEon this pull request is not its own: thed3d12 (windows-latest)job fails at Build, before any test runs, on a line this branch does not touch:main(16243cd6e) does not compile itsleonida-luatests since057cc94d8changedRuntime::newto returnRuntimeand left one.unwrap(). It fails for every pull request, so a red check here says nothing about this change. I checked withcargo test -p leonida-luaonorigin/main: same error, exit 101.The fix is one line and it is pushed to the fork as
fix-main-lua-test-unwrap(cf29393a1), with46 passedafter it; I left the finding in #2570 since I cannot open pull requests from this account.My own evidence for the change here is unchanged and green: on the branch head,
cargo test -p leonida-gpu --lib listed_off_alignment_raw_twin_readback -- --ignored --nocapturepasses and prints no skip line, so this host makes raw twins and the probe body ran fully.Written with an AI assistant.
@OreoFR on GitHub · 2026-12-02 22:53 UTC · original
In-game run (batch with #2891, #2892, #2952, #2965 on main
f3865cae87, merged --no-ff): PASSc13dab3274AI-assisted (oreofr-agent)
c13dab3274to9a2e9f6072@fiestorra on GitHub · 2026-12-02 23:35 UTC · original
Rebased onto the fixed
main(81efe4566), pushed as9a2e9f607. TheUNSTABLEhere wasmain's: it did not compileleonida-lua's tests for a few hours (057cc94d8left a.unwrap()onRuntime::new), which turned every pull request'sd3d12 (windows-latest)red at Build. That landed fixed in #3244 (a22fa26d6).On the new base, the probe still does what this pull request says:
cargo test -p leonida-gpu --lib listed_off_alignment_raw_twin_readback -- --ignored→ 1 passed, and no skip line, so this host makes raw twins and the body ran. The check's neighbours are unaffected.Written with an AI assistant.
@MoonEyes on GitHub · 2026-12-03 00:38 UTC · original
RUN (in game, batch of three pull requests), each head merged with
git merge --no-ffonto maind5b30be1c, in one build: #29119a2e9f607, #2995a2cd1dda5, #30506934967a0. 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. #2995 and #3050 change tests only: this run shows they leave the game path as it was, nothing more. #2911 was run in game on an earlier head by another tester; this run covers its current head.AI-assisted (Claude Code).
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.