NVIDIA places: the check also looks through a drawn pipeline (D3D12-PLACES-CHECK-GRAPHICS) #2919
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/2919:github-pr/2919" git switch "github-pr/2919"
Open
leonida/mandy
Christopher-Sundeby wants to merge 4 commits from
github-pr/2919 into main
pull from: github-pr/2919
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/2911
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/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
1 participant
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!2919
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/2919"
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.Claimed in the coordination issue as: D3D12-PLACES-CHECK-GRAPHICS (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7320510381)
What and why
Places::check(d3d12/crates/leonida-gpu/src/pipeline/places.rs) decides whether pipelines with static samplers may come from the pipeline library on NVIDIA. It loads a small stored pipeline for each listed place and compares what it samples with the same pipeline made now. Until now it used compute pipelines only.On an RTX 5090 with driver 621.40, a graphics pipeline loaded from the library samples through whatever now sits at its stored places, in every run. Loaded compute pipelines mostly sample through their own samplers wherever those now are. So when static samplers were made before the host's list (the case the check exists for), the check answered
sameand graphics pipelines were loaded through the wrong samplers. Inpipelines_with_static_samplers_come_from_the_library, at stepmake=50,51;host;..., this happened 3 of 3 times onmain:places: "same", and pipegwas loaded withread [2, 3],wrong 2. Measurements are in #2887 (comments from 2026-12-01).The change probes each place twice: with the compute pipeline as before, and with a drawn one. The drawn probe is a graphics pipeline with no render target that draws one pixel (1x1 viewport and scissor) and writes the same buffer from its pixel program. A place counts as
sameonly when every loaded probe agrees with its freshly made twin.ENTRYmacro that expands to the same tokens, andStage::namehashes a compute probe's code alone, asmaindoes.the_compute_probes_keep_their_namespins this without a card (fixed ine5895f9b8after merzleckeier's report).Test changes:
=1) assertion now requires the graphics pipeline to read wrong, instead of every pipeline. On 621.40 compute pipelines read right in most runs.places.rs'sVERTEXandbytecode()instead of their own copies.drawn: falsefield is set where a test builds aRun.Cost, with 320 samplers listed (
the_check_looks_at_every_kind_of_sampler, RTX 5090):mainThe first two columns are dominated by the driver compiling, and they vary between runs (KelboLive measured 4,658 / 5,337 / 480 ms). The lasting cost is about 0.2 s more per start.
Tested
On the card:
cargo test -p leonida-gpu --features diagnostics --lib pipeline::places -- --ignored --nocapture --test-threads=1main7fbdf8511Red to green:
the_check_looks_at_every_kind_of_sampler: onmainit fails withleft: "same" right: "differ". On this branch it findsdiffer.pipelines_with_static_samplers_come_from_the_library: onmainit fails atmake=50,51;host;...(a pipeline read through another sampler). On this branch bothmake=50,51andmake=3wanswerplaces: "differ"and every pipeline is made by the driver withwrong 0.Still red, on
mainand here, and untouched:a_stored_pipeline_reads_through_the_places_of_the_run_that_stored_itandthe_table_of_static_samplers. These assert the 616.64 driver's behaviour for compute pipelines, which #2887 documents.Other checks:
cargo test -p leonida-gpu --lib --locked: 633 passed, 59 ignored.cargo clippy -p leonida-gpu --all-targets --features diagnostics --locked: no warning in the changed files.rustfmt --check: no new differences (four existing ones inplaces/tests.rslines 961-986 are onmainalready).python -I scripts/check_no_game_data.pyon both files: clean.GPUs tested: NVIDIA GeForce RTX 5090, driver 621.40, Windows 11 Pro (native D3D12). Not run on 616.64 or on AMD/Intel. The new probe only runs on NVIDIA, as before.
AI-assisted: yes. Code, tests and measurements: Claude Opus 5.5 (Claude Code). Separate read-only reviewer: Claude Opus 5.5. It found no bugs; its points are applied in the second commit.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Existing compute probe keys change on upgrade at
40cf398aonmain7fbdf851. Inplaces.rsthe legacy code passed[stored]tolibrary::name. The PR passes[vertex, stored]for compute too. The vertex blob is empty, andlibrary::namehashes a length for every part, including that empty one. I compiled the old and new compute sources for regular and comparison samplers. The stored bytecode was identical in each pair, but both keys changed (4c6a1f1b→960ec8e9and190067a5→616c6d85). Passing only[stored]recovered both old keys in the same fixture.From the lookup code, a pre-upgrade library with only the old compute probes will miss both new compute and drawn keys. The first run can therefore accept the library while storing replacement probes, without comparing the previously stored compute probes described in the PR. Keeping the original one-part key for compute and the two-part key for graphics preserves that check.
I separately ran the new drawn probe with freshly created PSOs under Wine 11.22 / VKD3D-Proton 3.1.0 on RTX 4070 SUPER (620.73.4) and Radeon (RADV 26.3.1). On both GPUs the same-sampler draw matched all 12 vectors for each sampler kind. Changing the sampler with the shader code held fixed changed 12 regular vectors and two comparison vectors. The Wine cache scenarios did not exercise the NVIDIA-specific gate, so the upgrade effect above follows from code and the measured keys.
MEASURED with synthetic fixtures. AI-assisted (Codex).
Thanks @merzleckeier, you are right. The empty vertex part came in with the review fix in
40cf398a, and it changed every compute probe's name.Fixed in
e5895f9b8.Stage::namegives a compute probe its code alone, as onmain, and a drawn probe both of its programs. A new test that needs no card,the_compute_probes_keep_their_names, compiles the probe source as written onmainand requires the same name for each sampler kind. It also requires the drawn probe's name to differ.b4e5d35b…against8e67b0f9…).So a library stored before this change is still checked against its compute probes on the first run, and the drawn probes are added beside them.
AI-assisted: yes (Claude Opus 5.5, via Claude Code).
damn an ai assistant thanking someone from your account feels kinda wrong / strange...
but ye thank you @merzleckeier I am telling this personaly not an ai assistant telling you that <3
Thanks @KelboLive for the review. This review is on
40cf398a. Point by point, at the current heade5895f9b8:1. The compute probes' names. Fixed in
e5895f9b8, just before this review landed (merzleckeier reported the same).Stage::namehashes a compute probe's code alone, asmaindoes. A new test that needs no card,the_compute_probes_keep_their_names, compiles the probe source exactly as onmainand requires the same name for both sampler kinds. It fails with the empty vertex part put back (b4e5d35b…against8e67b0f9…) and passes with the fix. So the first run after landing checks against the stored compute probes, as before. You were right that the old wording ("judges by compute alone") did not hold at40cf398a.2. The graphics
wrong > 0assertion on 621.24. I believe it holds there too, from fiestorra's own 4090 / 621.24 run ofa_stored_pipeline_reads_through_the_places_of_the_run_that_stored_it(#2570, 15:19 today):That is the same vector as here on 621.40. The compute pipelines read their own samplers, and the graphics pipeline reads
[43, 44], the samplers now at its stored places, instead of[4, 5]. So the "keeps its places" result in #2887 and #2921 comes from compute probes, and graphics pipelines are still read through whatever sits at the old places on 621.24 and 621.40. That is also why #2921's "at run time nothing harmful follows" is too strong; I'll note it there. The assertionfilter(kind == "g").all(wrong > 0)therefore matches every measurement we have: 616.64 (every pipeline wrong), 621.24 and 621.40. If you have a 621.01 run ofa_stored_pipeline..., I'd like to see thegentry.3. No RTV/DSV. This is UAV-only rendering: a pixel shader with UAV side effects runs without a bound target. D3D11.1 made this explicit, D3D12 keeps it, and a PSO with
NumRenderTargets = 0is valid (no debug-layer message here). The 1x1 viewport and scissor give one pixel. It is measured on native NVIDIA 621.40 (every drawn probe wrote its 13 vectors), and merzleckeier ran the same draw on an RTX 4070 SUPER and RADV through VKD3D-Proton. The check only runs on NVIDIA. If you would still rather have a 1x1 target, I can add one; it is a small change.4. Timing. Agreed, the "~410 ms" was the steady state only. The PR body now has the table for both branches (store / first check / later starts) and quotes your numbers too. The lasting cost is about 0.2 s per start; the first two runs are dominated by driver compiles and vary.
AI-assisted: yes (Claude Opus 5.5, via Claude Code).
Compute probe key follow-up on the updated head
e5895f9bonmain60f7dcd9. I reran the original comparison through the productionStage::name. Previously stored compute bytecode compiled identically, and both legacy keys now match exactly (4c6a1f1band190067a5for this fixture). The drawn keys were distinct and matched their vertex-plus-pixel hashes. The new stock key-preservation test also passed.Fresh graphics probes again matched all 12 vectors on RTX 4070 SUPER (620.73.4) and Radeon (RADV 26.3.1), under Wine 11.22 / VKD3D-Proton 3.1.0. With only the sampler changed, 12 regular vectors and two comparison vectors changed on each GPU. Each run passed five stock and two additional tests, with eight ignored. This follow-up covers key generation and fresh draws.
MEASURED with synthetic fixtures. AI-assisted (Codex).
Nit done in 33e2e4c13: the comment above the careless run now names 621.01, 621.24 and 621.40 for the graphics pipeline, and keeps "compute only at times" to 621.40, where that was measured. Comment-only change; nothing else moved.
@KelboLive, with the three points settled, could you approve if you're happy with it? Your earlier review still shows as "changes requested".
AI-assisted: yes (Claude Opus 5.5, via Claude Code).
Independent check of
33e2e4c13merged cleanly onmain(1e3e316c5), on native Windows 10 Pro 22H2 (build 19045) + NVIDIA GeForce RTX 5070 12 GB (driver621.40, Ryzen 9 5950X):cargo test --locked -p leonida-gpu --features diagnostics --lib pipeline::places -- --nocapture --test-threads=1: 5 passed, 0 failed, 8 ignored (including the newthe_compute_probes_keep_their_names).cargo test --locked -p leonida-gpu --features diagnostics --lib pipeline::places -- --ignored --nocapture --test-threads=1: 1 passed (a_run), 7 failed -- all 7 GPU subprocess runs passedlibrary_use(host, &descs)and then panicked in the test harness atpipeline/places/tests.rs:659(root_signature(...)->HRESULT(0x80070057)/E_INVALIDARG). This is a pre-existing Windows 10 inboxd3d12.dlllimitation (test binaries do not export Agility SDK symbols, so inbox Win10d3d12.dllrejectsroot_signature()'s SM 6.6*_HEAP_DIRECTLY_INDEXEDflags -- same class as #2855), not a regression in this PR.(Unable to collect the ignored Blackwell
621.40GPU sampler probe matrix from the test binary on Windows 10 without Agility SDK; non-ignored unit tests and merge onmainare clean.)AI-assisted: Antigravity
A finding this PR should know about, measured while making the tests ask a real card: on driver 621.24, 4 of the 8
#[ignore]dpipeline::placestests fail once they run on an NVIDIA card instead of being skipped by one.They have never been seen failing because the device every test in this crate made came from
D3D12CreateDevice(None, ..)- Windows' default adapter - and on a machine with an integrated chip that is the chip. Theplaceschildren print the vendor of the device they made, and on a 7800X3D + RTX 4090 they printed:0x1002is AMD. So the NVIDIA branch of these tests was never entered on this machine, and the 8 "passed" said nothing. With the device on the 4090 (PR #2995),nvidia: trueand:What I cannot say: whether these are assertions of a driver behaviour that 621.24 changed (the places note in
findings.mdis about this driver) or a bug inplaces.rs. What I can say: on a 4090 with 621.24 the check answers "same" where these tests want "differ", and your drawn probe is the part that would tell them apart - which is why this is worth reading before merging: the probe's expectations may be written against a 5090/621.40 and a 4090/621.24 may answer differently.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
RTX 3090 / 621.47, 33e2e4c13 merged onto main 393901a5b: pipeline::places --ignored is 5 passed / 3 failed on main and 6/2 on the merge. static_samplers_come_from_the_library and every_kind_of_sampler go green; a_stored_pipeline_reads_through_the_places_of_the_run_that_stored_it goes red (left 6, 7], [43, 44], [1, 2, 3 right 45, 46], [43, 44], [40, 41, 42); the_table_of_static_samplers stays red. With no places: graphics wrong 2 read [2, 3], compute and sampler wrong 0.
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).
In-game run report for the current head, as asked above.
33e2e4c13, merged ontomain0d6757b70(clean merge)main0d6757b70alonediagbuild with DLSS, same caches for both runsmainmainalonesame=27 new=0, 145 mssame=27 new=0, 146 msNo logs or screenshots attached (they show game content).
AI-assisted: yes (Claude Opus 5.5, via Claude Code).
On ammonium231's RTX 3090 / 621.47 run:
a_stored_pipeline_reads_through_the_places_of_the_run_that_stored_itgoing red on the merge is not this change.LEONIDA_LIBRARY_STATIC_SAMPLERS=1, andplaces::startreturns beforePlaces::startfor1, so there is no check and no drawn probe; the compute read path inProbe::runis unchanged.[[45, 46], [43, 44], [40, 41, 42]]). On 621.x the graphics pipeline always does, while compute pipelines do only at times, so[[6, 7], [43, 44], [1, 2, 3]]comes and goes from run to run.mainelsewhere: on the RTX 5090 / 621.40 here, and on fiestorra's RTX 4090 / 621.24 above, both without this pull request.AI-assisted: yes (Claude Opus 5.5, via Claude Code).
Ran natively on Windows 11, head
33e2e4c13merged into currentmain(83046a713, clean merge), on driver 617.14. The thread has 616.64, 621.01, 621.24, 621.40 and 621.47, so this is a driver branch it does not have yet. The machine also has a second hardware adapter. Every child run printedvendor=10de, so the NVIDIA branch was really entered (the default-adapter problem raised above did not hit here).Stock tests (measured)
main--lib pipeline::places(no card)--lib pipeline::places -- --ignored --test-threads=1cargo test -p leonida-gpu --features diagnostics --libcargo clippy -p leonida-gpu --all-targets --features diagnosticsplaces.rsorplaces/tests.rsrustfmt --checkonplaces.rsplaces/tests.rsThe red-to-green in the PR body does not reproduce on 617.14, because
mainalready passes all 8 tests here.make=50,51andmake=3walready answerdifferonmain. In the no-care (=1) run, every kind reads wrong on both: computewrong 3read[50, 51, 1], graphicswrong 2[2, 3], streamwrong 2[4, 5]. So on 617.14 a loaded compute pipeline reads through stored places as well (the 616.64 model), anda_stored_pipeline_reads_through_the_places_of_the_run_that_stored_itandthe_table_of_static_samplerspass here. On this driver the change does not regress anything, and either probe kind alone finds the move, as the next table shows.Does each probe kind find moved places on its own? (measured, throwaway mutation of
check)I built two mutants of the merge. One counts every compute pair as
same(slot % 4 == 0), so only the drawn probe can find a move. The other blinds the drawn pairs instead (slot % 4 == 2). Both mutants ran the two stock tests that move places, 2 times each:make=50,51make=3wmake=50differ2/2differ2/2differ2/2sameevery time (the tests assert it)differ2/2differ2/2differ2/2sameevery time (the tests assert it)So the drawn probe works on its own on this driver, and gave no false
differ. The unmutated merge also ranpipelines_with_static_samplers_come_from_the_library3 more times, with the same verdicts every time (5×same, 2×differ, allwrong 0where checked).A graphics pipeline that samples in its vertex program (measured, throwaway kind
v)The drawn probe samples in its pixel program. I added a test kind whose vertex program does the sampling (
SampleLevelin VS, passed to PS throughnointerpolationoutputs) and ran it besidec,gandsthrough the same steps, in a single pass:vresultmake=40-49;heap=16)placed, loaded,wrong 0, read[8, 9]make=50,51/make=3w, checkedplaces=differ, made by the driver,wrong 0=1),make=50,51wrong 2, read[4, 5]=1),make=9pwrong 2, read[5, 8]On 617.14, a vertex-stage sampler behaves like the pixel-stage one and is covered by the check. I found no false negative.
Cost (measured,
testprofile, warm driver cache,mainand merge run in turns, n = 5 each, medians)the_check_looks_at_every_kind_of_sampler, 320 placesmaindiffer)The extra cost per start is about 0.2 s, in line with the body. The first round, with a cold driver cache, was 4,243 / 5,753 / 1,166 ms on
mainagainst 8,133 / 6,083 / 695 ms on the merge. That is n = 1, so I would not read much into it.Debug layer (measured)
The ignored suite cannot be used for a debug-layer verdict as it stands. With
LEONIDA_D3D12_DEBUG=1, 7 of 8 tests fail on bothmainand the merge, with the same message, 7 times: the test harness's ownSetComputeRootSignatureon a root signature withSAMPLER_HEAP_DIRECTLY_INDEXEDand no sampler heap set. This is pre-existing and not this PR. To look at the check alone, I drained the message queue right before and right afterlibrary_use(the call that runs the check) in a throwaway build. The check ran in 3 runs. In one it only made and stored its probes, so nothing was drawn. In the other two it loaded them and ran both the compute and the drawn pairs (the drawn ones have no render target). None of the 3 left a message at ERROR or above. The moved-places path could not be checked under the debug layer: a run that makes a device beforehostgetsPLACES noneonce the layer is on.Not checked: the moved-places path under the debug layer, warnings below ERROR, drivers other than 617.14, and any run in game.
GPUs tested: one NVIDIA desktop card. There was no WARP run of the card tests: the check runs only on NVIDIA, and
run()removesLEONIDA_D3D12_WARPfrom its child processes. The 5 non-card tests also pass withLEONIDA_D3D12_WARP=1set, but they create no device.AI-assisted: yes (Claude Code).
RUN (in game, batch of eleven render-path pull requests), each head merged with
git merge --no-ffonto main3c106eb2f, in one build: #3071c2065b540, #298265155eceb, #296400a068106, #310779333e26b, #2833823087ec3, #2947b07f64346, #291933e2e4c13, #2962a4a26ec63, #2847c8b950cb4, #3114c4ebe52de, #26640e2b6287c. 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 17.2 fps today on main with single pull requests or other batches. 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; free system memory was low (median 0.6 GB); arrival in the world was driven by keys and not checked on pictures. An earlier attempt of this batch is not counted: two runs were started at the same time by mistake on one GPU (no device loss in either, but the measure is not clean).
AI-assisted (Claude Code).
Reviewed #2919 (code review only, not built here: Windows-only, NVIDIA). In-game PASS at this head and several native runs; the remaining red
--ignoredtests are driver-dependent and are red onmaintoo.33e2e4c13dmain45dc41f95cgit merge-tree); merge base7fbdf85110, 365 commits behind--ignoredon bothmainand the merge), the author's in-game run (15:54), MoonEyes in-game PASS (2 December 17:06, batch of eleven)What the threads establish
40cf398a) was fixed ine5895f9band rechecked by him.pipeline::places --ignoredgoes from 5/3 onmainto 6/2 on the merge: two tests turn green,a_stored_pipeline_reads_through_the_places_of_the_run_that_stored_itturns red,the_table_of_static_samplersstays red. The author's answer holds when checked against the code: that test runs its children withLEONIDA_LIBRARY_STATIC_SAMPLERS=1, which returns beforePlaces::start, so none of this PR's code runs in it. It is red onmainon 621.24 (fiestorra) and 621.40 (author) and flips from run to run on 621.x. On 617.14 all 8 pass on both sides.--ignoredplaces tests are not a reliable gate on 621.x drivers. That is a separate finding, not this PR's: those tests assume the 616.64 driver model.Review. Adding a drawn (graphics) probe beside the compute one so the check sees through a pipeline kind whose places the driver handles differently is a measured fix (driver versions named in the comment at
33e2e4c13), not a skip.Verdict: ready.
finding:
d3d12/crates/leonida-gpu/src/pipeline/places/tests.rs--ignoredtests (a_stored_pipeline_reads_through_the_places_of_the_run_that_stored_it,the_table_of_static_samplers) assert the 616.64 model and fail or flip on 621.x NVIDIA drivers; needs an NVIDIA card to rework.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