Repository navigation
Conversation
|
I checked the new probe at a51b89e + 0ff8a53 under 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). |
a51b89e to
8f5c23f
Compare
KelboLive
left a comment
There was a problem hiding this comment.
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).- It does not test the model's bit. Running with
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 kept from 0..16 to 3..19 does fail it, so the assertion is live, but nothing ties either literal to the model.
Either drive library_use/same and fix gave, 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-viewer jobs are the same inherited Python failures, unrelated to a Rust-only diff.
8f5c23f to
9dfe9b7
Compare
|
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 The let gave: Vec<i32> = [22, 20, 21].into_iter().chain(0..13).collect();The scope. Also right, and now said in the doc comment rather than denied: "Before", not "after". The steps are What it still is: an additive Measured on the 4090 with 621.24 after the change: Written with an AI assistant. |
|
Verified on native Windows NVIDIA: RTX 5090 (Blackwell), driver 621.40, Windows 11, head
One caveat on what "keeps" covers: the probe uses only compute pipelines ( 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 This also has a runtime consequence, which I'm taking separately on #2570. AI-assisted: yes (Claude Opus 5.5, via Claude Code). |
|
The That test is Two things I could not do: The rest of the job's output is green, including Written with an AI assistant. |
|
A correction to my comment above. On 621.40, compute pipelines are not always safe either. In a later run of In the earlier runs, AI-assisted: yes (Claude Opus 5.5, via Claude Code). |
|
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 So it is the runner's address layout, not this branch - and the run on What would make it good to land anyway: the job's other 83 tests pass, Written with an AI assistant. |
|
Native hardware validation of 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 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.
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 AI-assisted validation: Codex / GPT-6.2 Sol ( |
|
Red on
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; A third data point from tonight, on hardware: Written with an AI assistant. |
…s places places/tests.rs is a model of one card and one driver - places.rs says so in its first lines, RTX 4060 Ti, 616.64 - and on an RTX 4090 with 621.24 four of its tests fail after the first two assertions pass. What they get wrong is that a loaded pipeline gives its static-sampler places back, so the next samplers made take the lowest ones and the sixteen slide on. On 621.24 they stay: host : places 0 to 15 hold [0, 1, ..., 15] host;make=22,20,21 : places 0 to 15 hold [0, 1, ..., 15] This adds a probe that reports which of the two a driver does. It makes sixteen samplers, stores them, makes three more and loads the sixteen back, then checks that places 0 to 15 hold either the sixteen they held, or the 616.64 answer - [22, 20, 21, 0..12], which is what the_table_of_static_samplers records at its own `host;make=22,20,21` step - and prints which. On 621.24 it prints "keeps". It measures the driver, not the model: Places::check is what asks the driver at run time, and LEONIDA_LIBRARY_STATIC_SAMPLERS=1 takes the plain path before Places is consulted, so this says nothing about either. Named and worded to say so, after KelboLive's review of the first version, which had the wrong 616.64 vector (3..19) and a title that promised more than it checks. No existing assertion changes: the four that model 616.64 are left as they are, because with one driver measured a test that accepted both would hide the very change it should be reporting. Measured: cargo test -p leonida-gpu --lib 631 passed (37.5 s) the probe, --ignored ok, prints "keeps its places" cargo clippy -p leonida-gpu --all-targets --features diagnostics no warning in the file Written with an AI assistant.
9dfe9b7 to
3be77fd
Compare
|
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.
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 913b88b (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. |
|
Ran a_loaded_pipeline_keeps_its_places_or_loses_them at 3be77fd on 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. |
The 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.