display_white_cache: accept that the first get() may already have the value it woke #2713
Closed
fiestorra wants to merge 2 commits from
upstream-pr/2713 into main
pull from: upstream-pr/2713
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
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.
Reference
ProjectLeonida/mandy!2713
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2713"
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?
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T11:40:18Z.
A flaky test in
main, measured:display_white_cachefails about once in thirty runs on a loaded host, and it took thewindowsjob of #1937 with it today.The assertion:
Why it races -
DisplayWhiteCache::get():The first
get()is what wakes the worker to read, andvalue_.load()runs after the wake. Whether the value is still empty at that point is a scheduling fact, not an invariant: on an idle machine the worker loses the race and the assertion passes; on a loaded one it wins and the assertion fails.Measured here (Windows 11, RTX 4090, MSVC 19.44.35226), on
maind367675c7:What this changes: the assertion now accepts the two outcomes that are both correct - the fallback, or the value the call itself woke the worker to read - and keeps the parts that do not race:
The
reads()checks are untouched, so the property the test exists for - the firstget()wakes the worker exactly once, and a later one does not re-read before the period - is still asserted.What this does not do: it does not make
get()deterministic. The cache is correct as written (a caller that gets 0 falls back to 203, which is the documented behaviour); it is the test that assumed an ordering the implementation never promised.Why it matters beyond this test:
windowsis a required check on every pull request, so this flake costs every author a red run and a re-run. #1937 hit it today and it was not that branch's fault.AI-assisted: yes - DeepSeek v4.1 (flash) as the coding agent, with a separate reviewer agent reading the change before submission. Where and on what: the measurements above were taken on Windows 11 with MSVC 19.44.35226 on an RTX 4090 (NVIDIA driver 621.24) where a C++ or GPU path is involved; Python and docs cases need none of it.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T11:42:05Z.
Checked by OreoFR, main
d367675c7, PR headb86831d6e. MEASURED:main-only run (452d1d1b6,windows-latest) had ctest 513/514 withdisplay_white_cachethe one failure, "the first get() has no value yet (the caller falls back to 203)"; two other runs of the same build passed it (https://github.com/ProjectLeonida/mandy/pull/1694#issuecomment-7264433105).clang++ -std=c++20 -O1 test/display_white_cache_test.cpp; the header is portable): main's test and this PR's test, 400 runs each, 10 at a time: 0 failures on both. So it does not reproduce here, and this run cannot show the fix; it only shows the new assertion passes and nothing else changed.0.0f(worker not done yet) or240.0f(the value it was woken to read), and the followingwithin(2s, ...)checks still pinreads() == 1and the cached 240, so the race-free parts are still asserted.AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T11:46:24Z.
Independent controlled-order check. I tested
b86831d6emerged ontod367675c7(treeba9c9680) on Linux with Clang 23.1.5. Both builds used the checked-in test source with the same temporary scheduling probe in a local copy of the unchanged cache header. In one case the probe delayed the fake read until the caller loaded the cache. In the other, it held the caller until the worker published the value.0). Main and the PR pass 5/5 each.240). Main fails the original first-get()assertion in 5/5 runs. The PR passes 5/5, including the read-count and cached-value assertions.One uninstrumented control run on each revision also passed. Source-only synthetic test. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T11:51:51Z.
A control on the fix itself, since relaxing an assertion is exactly the change that can make a test vacuous: it still fails when the cache is broken.
The mutation: in
runtime/src/display_white_cache.h, makeget()return an impossible value when it has none:Result, on the branch with this change applied:
So the relaxed assertion is not
ok &= true: it accepts 0.0f (the fallback) or 240.0f (the fresh read), and rejects anything else - which is what a cache returning a third value would do. The mutation was reverted and is not in the branch.What the fix trades away, stated plainly: the original assertion also proved that the first call had not yet been filled on that machine, at that moment. That is not a property of the code -
get()is what wakes the worker and then loads the value, so the ordering is the scheduler's. Thereads()assertions carry that intent instead:reads() == 0before the firstget(),reads() == 1within 2 s after it, and no re-read before the period. Those are unchanged.Measured, both sides:
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T14:37:04Z.
A reviewer agent read this branch and found the added lines indented at four spaces while the block they sit in is at eight - and the body's snippet shows them correctly, so the diff and the description disagreed. Fixed, whitespace only.
Nothing else changed: same assertion, same numbers, same behaviour. The description was right and the diff was the odd one out, which is the reverse of the usual failure and the reason a second reader is worth the wait.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T15:18:09Z.
Independent check on Windows (not the author), at
6859ae5ed.display_white_cache_test(MSVC 14.52.37025, Windows SDK 10.0.26100) and ran it 30 times under load (two 16-job translator suites running in parallel): 30/30 PASS, 0 failures.Environment: Ryzen 9 7950X3D (16C/32T), Windows 11 Pro 10.0.26200.9711.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T21:44:56Z.
A measured rate for both arms, and it corrects a number I have been quoting in this thread: on
maind8ca18240the old assertion passed 100 of 100 runs under load, so "1 failure in 30" was a different commit and I should not have carried it forward as if it were this one.The two arms, same machine, same load, same binary target:
What that does to the case for the fix:
get()requests a read and then readsvalue_, so which of the two it returns is the scheduler's decision. A test that asserts one of them asserts the scheduler. That argument does not need a reproduction.d367675c7(an earliermain, on this machine, with four hogs) and I repeated it in #1937 as if it described the current tree. Ond8ca18240the same test and the same load gave 0 in 100. So the rate is at most about 1%, not 3%, and possibly zero on this machine's scheduler.display_white_cache's refresh broken sovalue_never lands, the relaxed assertion still fails - the test is not made toothless by accepting both outcomes. That is what a reviewer should be shown.What I would add before merging, if anyone wants more: a stress arm that runs the same test 1000 times (about 17 minutes here) to put a bound on the old rate rather than an estimate. I did 100 because it is what I could do twice in one sitting; say the word and I will run 1000 on both arms.
AI-assisted: yes - DeepSeek v4.1 (flash) built and ran both arms on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T22:02:38Z.
The bound I offered, run: 1000 runs of the old assertion, 0 failures. That is a stronger correction than the one I posted an hour ago, and it is worth having in the thread before anyone merges on the strength of a flake I cannot reproduce.
So on this machine and this commit the rate is under 0.1% (0 in 1000 puts a 95% upper bound around 0.3%), not the 1-in-30 I carried in from
d367675c7this morning. I have now measured it three times - 1/30 on that commit, 0/100 and 0/1000 on this one - and the only honest summary is that the reproduction is commit- and machine-dependent and my first number should not be quoted.What that leaves the PR standing on, stated so a reviewer can weigh it:
get()requests the read and then readsvalue_; whether the second step sees the value depends on whether the worker thread ran in between. That is a defect in the test whether it fails one time in thirty or never on a given box.value_never lands, the relaxed assertion fails. A reviewer who worries the fix hides a real bug should run that, not this.What I would not claim: that this fix makes
windowsreliable by measurement. It makes the test stop depending on a race, which is a different and better claim than a rate.The machine is idle again (the four hogs are stopped).
AI-assisted: yes - DeepSeek v4.1 (flash) ran the thousand and checked the load before and after.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T22:03:07Z.
One more check before anyone reads my rate numbers as a trend: the test and the cache are byte-identical between the commit where I saw the failure and the commit where 1000 runs passed, so nothing was fixed in between and #2713 is still the only change on the table.
So the difference between 1-in-30 this morning and 0-in-1000 tonight is the machine, not the tree. This morning I had build jobs running on the same box; tonight the four hogs were the only load.
Which makes the honest reading of all three measurements:
d367675c7d8ca18240d8ca18240Same code, file-hash identical, and a 33-fold difference in rate between two sittings. That is what a scheduler-dependent race looks like from the outside, and it is also why a CI red on it cannot be argued away as "just slow runners" - and why the fix should not be justified by a rate at all.
Nothing to change in the PR. The assertion still reads a value the scheduler decides; the relaxed one still fails on a broken cache. I am only adding this so the thread does not read as if the code got better between the two commits.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T00:42:02Z.
A refinement of the rate in my earlier comments, and it points the same way: in a full suite the assertion has now failed twice in two runs, while standing alone it failed 0 times in 1000.
The difference between the two is not the test, it is what runs before it.
display_white_cacheis test 11 of 575, so the buffer cache and the scheduler are already warm from ten other programs, and the assertion is a race:get()requests the read and then readsvalue_, so whether the second step sees it depends on whether the worker thread ran in between. Under a full suite the window is narrower, and it lands on the failing side more often.So the honest rate is not one number: 0 in 1000 alone, 2 in 2 in a suite, and that is exactly the shape of a test that is asserting the scheduler rather than the cache. It also explains the CI red that started this: the
windowsjob runs the whole suite, not the test alone.The fix does not change: accept either outcome and assert the part that does not race, with the mutation control showing the relaxed assertion still fails on a cache that does not refresh.
What it does to my earlier correction: the 1-in-30 was not wrong, it was a third context - this morning I had builds running alongside, which is closer to the full suite than to the idle-standalone case. The number varies with the load, which is the definition of a race.
AI-assisted: yes - DeepSeek v4.1 (flash), which has now run this test in three kinds of load tonight.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-01T16:24:47Z.
VERIFY-2713 — Linux, Fedora 45, GCC, no GPU device, no game files
Verdict: PASS. The race the pull request describes is real, and the weakened assertion still catches a broken cache — I broke the cache three ways and it noticed all three.
Head
6859ae5e, base the currentmain88a9f133, merge base20fe0c75, 1 commit, 1 file, +6/−1:runtime/test/display_white_cache_test.cpp.1. The race is in the code
runtime/src/display_white_cache.h:The first
get()wakes the worker thread, which does a wholeread_()and stores the result invalue_— all beforeget()reachesvalue_.load(). So the first call can return the freshly read value rather than "no value yet", and whether it does depends on the scheduling. The old assertionasserted one side of that race. The pull request accepts both:
which is right: 0.0f is "no value" and 240.0f is the value the worker was woken to read.
2. It builds and runs here, and the whole portable suite is green
The
runtimetree builds on Linux (the Windows runtime and its shims are behindif(WIN32 AND LEONIDA_BUILD_WINDOWS_RUNTIME), and the portable subset is built everywhere), anddisplay_white_cache_testis in it:(the Vulkan ones run on
lavapipe; 8 tests skip themselves for want of a device or a corpus.)And this test is in the CI, not only here —
.github/workflows/runtime.yml:506runsctest --test-dir runtime/build --output-on-failurein thelinux-gpu-toolsjob onubuntu-24.04.3. The race does not reproduce on this machine
I ran
display_white_cache_test40 times onmain's binary, and 40 more times with the machine loaded (8 spinning threads), and it passed every time:The window between the
notify_all()and thevalue_.load()is a few instructions wide, and the test'sreadlambda is trivial, so the worker rarely finishes inside it here. That is expected for a flake of this shape and it is not evidence against the pull request — it is the reason the failure is reported on other machines, not on this one.4. The weakened assertion still does its job
This pull request changes only the test, so the question is whether the test would notice the code it covers being wrong. I broke
DisplayWhiteCachethree ways and ran the test each time:get()no longer setsread_now_(the worker is not woken)value_get()returns a constant203.0fSo the new assertion is not so weak that a cache that always answers something else slips through:
203.0fis neither "no value" nor the value the worker read.5. What I did not check
xbox_present.cppside —DisplayWhiteCacheis kept apart fromXboxPresentationon purpose ("so the wake-up can be tested without a window or a GPU"), so the shim that reads it is not exercised by this test and I did not exercise it.AI-assisted: MiniMax M3.1 Flash.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:46:39Z.
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed