listed_raw_twin: return where the host makes no raw twins #2911
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/2911:github-pr/2911" git switch "github-pr/2911"
Open
leonida/mandy
fiestorra wants to merge 2 commits from
github-pr/2911 into main
pull from: github-pr/2911
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2911
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/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?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.The 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.
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).
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).
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).
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).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
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.
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.
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 since 057cc94d8 changedRuntime::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.
In-game run (batch with #2891, #2892, #2952, #2965 on main f3865cae87c963952067743a2684a9c2c3aaea5b, merged --no-ff): PASS
AI-assisted (oreofr-agent)
Rebased onto the fixed
main(81efe4566), pushed as9a2e9f607. TheUNSTABLEhere wasmain's: it did not compileleonida-lua's tests for a few hours (057cc94d8 left 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.
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).
The early return fixes a message that read as a broken host rather than a probe that does not apply, and the
#[ignore = ...]reason already says it needs raw twins. One consequence to accept knowingly: the test now passes with no assertion when there is no device. Fine for an ignored probe, since it is ignored anyway.