NVIDIA places: a test for the one bit the model takes from the driver #2887
Open
github-bot
wants to merge 1 commit from
github-bot/gh-2887 into main
AGit
pull from: github-bot/gh-2887
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!2887
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2887"
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 15:26 UTC · original
fiestorra:places-driver-bit→main· +47 −0 · 1 files · 1 commits · openThe four tests in
pipeline/places/tests.rsare a model of one card and one driver —places.rssays which in its first lines, RTX 4060 Ti, 616.64 — and on an RTX 4090 with 621.24 all four fail, right after the first two assertions that do pass.What they assert there and what the card says:
And the printout from that same test, one step at a time:
So the sixteen do not slide. The model says they do, because a loaded pipeline gives its root signature back and its places with it, and the next three samplers take the lowest free ones. On 621.24 the loaded pipeline keeps them.
That one fact decides whether
Placeshas to number the samplers at the start at all, and nothing in the code asks the driver for it — the model assumes one answer.What this adds: a test that asks and reports the answer instead of asserting one.
It makes sixteen samplers, stores them, loads them back, makes three more after, and checks that places 0 to 15 hold either the sixteen they held (
kept) or those three places on (given back), printing which. Both are answers a driver may give; on 621.24 it printskeeps its placesand passes.No existing assertion changes. The four that model 616.64 stay as they are, because with one driver measured, a test that accepted both would hide the change it should be reporting. When someone runs this on a card with 616.64, the new test prints
gives backand the four keep failing — which is exactly the pair of facts needed to fix them, and it is now one command.Measured:
The
--ignoredtests need a card and no game data: they make their own pipelines and read back what they wrote.AI-assisted: yes — DeepSeek v4.1 (flash), on the card and the driver the model does not describe.
Written with an AI assistant.
@merzleckeier on GitHub · 2026-12-01 15:45 UTC · original
I checked the new probe at
a51b89ee+0ff8a532funder Wine 11.22 / VKD3D-Proton 3.1.0, with the physical RTX 4070 SUPER (620.73.04) exposed to DXGI as vendor 0x10de. The VKD3D pipeline-library prerequisite is not met here. The stock probe fails at table.loaded with the driver’s disk cache disabled and again with a fresh enabled cache. On RADV the first readback succeeds and the test takes the expected non-NVIDIA exit.A local log of the existing subprocess records shows plain made for both the save and the attempted reload on NVIDIA. The same outcome repeats when using the harness’s explicit plain PSO name and when enabling VKD3D’s pipeline_library_app_cache option. The readback is 0 through 15 in both processes, but the second pipeline was freshly made, so those values cannot classify the loaded pipeline on this host. This is diagnostic coverage of that prerequisite, without a native NVIDIA driver result. MEASURED with offscreen synthetic shaders. AI-assisted (Codex).
a51b89ee88to8f5c23f8dd@KelboLive on GitHub · 2026-12-01 17:32 UTC · original · reviewed
Measured here on the same shape of machine (RTX 4070 Ti SUPER, 621.01): the new test passes 3/3 and prints
keeps its places: 0 to 15 hold [0..15], and the four existing places tests fail exactly as the body describes (5 passed / 4 failed with--ignored) — that is genuinely useful evidence for the report.But two claims do not hold:
gave = 3..19is not the 616.64 answer. The test's steps are byte-identical tothe_table_of_static_samplers, whose 616.64 expectation is[22,20,21,0..12](tests.rs:915, quoted in the body itself). On that driver this test will read that vector, print "gives back", and panic attests.rs:969rather than pass. Fix the branch to accept the observed 616.64 vector (or derive it from the same fixture).LEONIDA_LIBRARY_STATIC_SAMPLERS=1makesplaces::startreturnNone(places.rs:1124-1131) andlibrary_usetakeUse::Plainbefore consultingPlaces(:1168-1169), so short-circuitingPlaces::sametotrueleaves the test green — I verified it. And "nothing in the code asks the driver" is wrong:Places::check(places.rs:548-651) loads stored pipelines and compares them to made-now ones precisely to ask; what is not modelled is this perturbation (three samplers made before the load — the body says "after").Also note the test only asserts its own two literals: changing
keptfrom0..16to3..19does fail it, so the assertion is live, but nothing ties either literal to the model.Either drive
library_use/sameand fixgave, or retitle it as a driver probe and drop the "nothing asks the driver" line. As an additive#[ignore]d diagnostic it is safe to merge; it just is not the test the title promises.Merge is clean against current main (159 behind); the red
check/linux-python-and-viewerjobs are the same inherited Python failures, unrelated to a Rust-only diff.8f5c23f8ddto9dfe9b7af6@fiestorra on GitHub · 2026-12-01 17:58 UTC · original
Both hold, and thank you for measuring instead of reading - the second one especially, because I wrote "nothing in the code asks the driver" in a file whose
checkdoes exactly that, and I would have merged it.The
gavevector. You are right:3..19was never the 616.64 answer. The steps here are byte-identical tothe_table_of_static_samplers'shost;make=22,20,21, whose recorded answer is[22, 20, 21, 0..12], and on a card with 616.64 this probe would have printed "gives back" and then panicked on its own assertion. It now accepts that vector:The scope. Also right, and now said in the doc comment rather than denied:
Places::checkis what asks the driver at run time, andLEONIDA_LIBRARY_STATIC_SAMPLERS=1takesUse::PlainbeforePlacesis consulted, so short-circuitingsameleaves this green - as you verified. It measures the driver; the name is nowa_loaded_pipeline_keeps_its_places_or_loses_them, and the "nothing asks the driver" line is gone."Before", not "after". The steps are
host;make=22,20,21;pipe=c:0-15: the three are made before the sixteen are loaded back. The print line said "after it" and now says "before it". Same for the perturbation being what is not modelled.What it still is: an additive
#[ignore]d probe with no existing assertion touched, printing which of the two answers this card gives. What it is not: a test of the model, and the title no longer says it is.Measured on the 4090 with 621.24 after the change:
Written with an AI assistant.
@Christopher-Sundeby on GitHub · 2026-12-01 18:09 UTC · original · edited 2026-12-01 18:51 UTC
Verified on native Windows NVIDIA: RTX 5090 (Blackwell), driver 621.40, Windows 11, head
9dfe9b7af.cargo test -p leonida-gpu --features diagnostics --lib pipeline::places -- --ignored --nocapture --test-threads=1: 5 passed, 4 failed (the same four as on the 4090 / 621.24).a loaded pipeline keeps its places: 0 to 15 hold [0, 1, ..., 15], the same answer as 621.24.the_table_of_static_samplersprintshost;make=22,20,21: places 0 to 15 hold [0, ..., 15], the same as 621.24.One caveat on what "keeps" covers: the probe uses only compute pipelines (
pipe=c:0-15). On this driver graphics pipelines still read through the stored places. This happened in every run (3 of 3, and 2 of 2):So on 621.40 (and likely 621.24, given the same failures) a loaded compute pipeline keeps its places and a loaded graphics pipeline does not. The probe's line is true for compute only. Suggestion: name it for compute, or add a
pipe=g:twin.This also has a runtime consequence, which I'm taking separately on #2570.
Places::checkprobes with compute pipelines only, so on this driver it answerssamewhen the places did shift, and a graphics pipeline is then loaded through the wrong samplers. Inpipelines_with_static_samplers_come_from_the_library, at the stepmake=50,51;host;..., it reproduces 3 of 3:places: "same", and thegpipeline is loaded withread [2, 3]andwrong 2.AI-assisted: yes (Claude Opus 5.5, via Claude Code).
@fiestorra on GitHub · 2026-12-01 18:13 UTC · original
The
d3d12 (windows-latest)job is red oncrash::tests::memory_at_names_what_an_access_hit, and it is not this branch:That test is
d3d12/crates/leonida-loader/src/crash.rs:890, and the assertion that failed iscrash.rs:915,assert_eq!(memory_at(base + 8), "nothing mapped there")- it maps a page and expects the eight bytes past it to be unmapped, which depends on where the runner's allocator put things. This pull request touchespipeline/places/tests.rsand nothing else, and its test is#[ignore]d, so that job does not run it at all.Two things I could not do:
gh run rerun --failedis refused for this account (Must have admin rights to Repository), so I cannot show it passing on a second attempt. That is the one piece of evidence missing, and it is a click someone else has.The rest of the job's output is green, including
pipeline::placesitself in its non-ignored form.Written with an AI assistant.
@Christopher-Sundeby on GitHub · 2026-12-01 18:18 UTC · original · edited 2026-12-01 18:51 UTC
A correction to my comment above. On 621.40, compute pipelines are not always safe either. In a later run of
pipelines_with_static_samplers_come_from_the_library, at its no-care step (=1,make=50,51first), the stream-made compute pipeline also read through other samplers:In the earlier runs,
sread[6, 7], which was right. So, measured on this card: a loaded graphics pipeline read wrong in every run, and loaded compute pipelines read right most of the time but not every time. "Keeps its places" holds for compute only, and only most of the time.AI-assisted: yes (Claude Opus 5.5, via Claude Code).
@fiestorra on GitHub · 2026-12-01 18:19 UTC · original
One more piece of evidence for the comment above, and it settles it: the same workflow passed on this branch's previous head and failed on this one, with the only difference being the two corrections in the places test.
What changed between them is
pipeline/places/tests.rsonly: thegavevector, the test's name, and its doc comment. What failed isleonida-loader/src/crash.rs::memory_at_names_what_an_access_hit, at itsmemory_at(base + 8)assertion. A test in another crate, checking where the allocator put a page, cannot be reached by a change to an#[ignore]d test inpipeline.So it is the runner's address layout, not this branch - and the run on
8f5c23fis the control that says so, which is the thing I could not produce by rerunning because this account cannot.What would make it good to land anyway: the job's other 83 tests pass,
pipeline::placesis not among them (it is#[ignore]d), and the change is a probe that only prints.Written with an AI assistant.
@NetZlash on GitHub · 2026-12-01 20:35 UTC · original
Native hardware validation of
9dfe9b7af6ab67aa300a26f150120e82b99878fd.Hardware. NVIDIA RTX 4070 SUPER (Ada, 12 GiB), NVIDIA driver 621.40, native Windows 11 Pro x64 build 26200, Ryzen 7 9700X and 32 GB RAM. This was an isolated checkout with Rust/Cargo 1.98.1 and the diagnostic build. All fixtures use synthetic shaders and readbacks.
Revised probe. The stock simple-compute test passed three times. Three additional save/reload pairs each used a fresh application pipeline library. The first process created the PSO and wrote the library. A second process succeeded through
LoadComputePipelinein forced plain mode. All three readbacks were[0, 1, ..., 15], matching the fresh controls. This tests the revised recipe, which puts the perturbation before reload and corrects the displaced vector described in the RTX 4070 Ti SUPER / 621.01 review. I did not run driver 616.64.Additional forced-plain checks. I ran three fresh-library pairs for each of two recipes, with ten extra samplers after the host setup or two extra samplers before it. Every second process succeeded at the specified library entry points. The fresh controls were equivalent pipelines created in that same process.
LoadComputePipeline[1, 2, 3][1, 2, 3][1, 2, 3]LoadGraphicsPipeline[43, 44][2, 3][4, 5]LoadPipeline[6, 7][6, 7][6, 7]Ada and Blackwell. On Ada, both graphics samples read the wrong sampler in all six loads. This reproduces the reported graphics mismatch on RTX 5090 (Blackwell) with 621.40. The stream-compute samples matched their controls in all six Ada loads. The 5090 follow-up observed intermittent stream-compute mismatches. My early recipe isolates the forced-plain portion of the combined test and starts with a fresh application library. Run order and cache history differ, so the stream-compute result is limited to these recipes. The tests cover the selected library routes with forced plain mode. Automatic
Places::check, other drivers and in-game behavior remain outside their scope.AI-assisted validation: Codex / GPT-6.2 Sol (
gpt-6.2-sol).@fiestorra on GitHub · 2026-12-01 21:37 UTC · original
Red on
d3d12 (windows-latest), and not this branch. Two measurements, so it does not get read as a flake:8f5c23f, an hour before), with only the two corrections in the places test between them.leonida-loader'scrash::tests::memory_at_names_what_an_access_hit, at itsmemory_at(base + 8)assertion — and a change to an#[ignore]d test inpipelinecannot reach it.The runner's WARP adapter is the common factor, and #2923 is the fix being proposed for it: the workspace tests run one per core against one WARP device, and this crate flakes about one run in eight that way (measured: 16 parallel runs, 2 failures in two different tests;
--test-threads=1, 8 of 8 clean).A third data point from tonight, on hardware:
descriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails onmainon an RTX 4090 with the same kind of message ("copied as it was made"). Also not this branch — but it is a real failure of the tree, reported in #2570.Written with an AI assistant.
9dfe9b7af6to3be77fdeb5@fiestorra on GitHub · 2026-12-01 23:43 UTC · original
The red d3d12 (windows-latest) was not this change: it was crash::tests::memory_at_names_what, in crates/leonida-loader, which this branch does not touch.
---- crash::tests::memory_at_names_what assertion left == right failed left: "read-write" right: "nothing mapped there"I could not make it fail here: six runs of cargo test -p leonida-loader --lib crash::tests on this machine, in parallel like CI, 19 passed, 0 failed, six times out of six. It needs a page to be unmapped and read back as unmapped, and a parallel test taking that address between the two is the shape of it.
The branch is rebased onto main
913b88b90(which also re-runs the jobs - gh run rerun needs admin rights I do not have), so this PR is current and its CI is fresh.If it goes red on the same test again, that test is worth fixing on its own: it is in the same class as #2923 (the crate's tests on one thread for the same reason) and it will keep colouring unrelated pull requests.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@andrew-ai on GitHub · 2026-12-02 00:02 UTC · original
Ran a_loaded_pipeline_keeps_its_places_or_loses_them at
3be77fdebon Windows, RTX 5070 / NVIDIA 616.92, with the diagnostics build and --ignored --nocapture. One test passed. It reported “gives back” and read [22, 20, 21, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]. This exercises the other accepted result from the RTX 4090 / 621.24 report and matches the earlier sampler-table readback on this machine (#2996). Codex-assisted.@MoonEyes on GitHub · 2026-12-02 12:30 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 15:53 UTC · original
RUN (in game, batch of six render-path pull requests), each head merged with
git merge --no-ffonto main83046a713, in one build: #293345e0aae53, #28314375de941, #28404db84a195, #28873be77fdeb, #28555e4cd9bcb, #29959e1e95930. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x, 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 15.2 fps today on main with single pull requests and 14.9 with the first batch; no compile ran beside the game this time. 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. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; free system memory was low (median 1.3 GB); arrival in the world was driven by keys and not checked on pictures.
AI-assisted (Claude Code).
@MoonEyes on GitHub · 2026-12-02 18:12 UTC · original
Reviewed #2887 (code review only, not built here: Windows-only, needs an NVIDIA card). A test-only measurement probe; heavily verified on real cards, and in-game PASS at this head.
3be77fdeb5main45dc41f95cgit merge-tree); merge base913b88b905, 313 commits behind9dfe9b7af)Review of
d3d12/crates/leonida-gpu/src/pipeline/places/tests.rs(+47, test only)a_loaded_pipeline_keeps_its_places_or_loses_themis#[ignore]d and runs in child processes like the otherplacestests. It accepts exactly two answers ("kept": places 0-15 unchanged, or "gave back": the 616.64 model's[22, 20, 21]then0..13) and prints which one the driver gave. Anything else fails with both expectations in the message. That is the right shape for a test whose purpose is to record driver behaviour across versions.Places::check, and theLEONIDA_LIBRARY_STATIC_SAMPLERS=1plain path).D3D12CreateDevice(None)) applies here too; the printed vendor line is how a runner can tell.GPUs tested:line in the description; the AI line names no model.Verdict: ready (add the claim ID).
AI-assisted: Claude Opus 5.5 (Claude Code), review only.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@fiestorra on GitHub · 2026-12-02 18:23 UTC · original
Done, and said plainly rather than papered over: the description now has a Process section stating that there is no claim for this pull request in #2570 and that I am not filing one retroactively, plus the
GPUs tested:line. Thanks for reading it closely.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.