xbox_present: a skipped present after a resize is not a composition failure (and the helper says which step failed) #2652
Closed
fiestorra wants to merge 2 commits from
upstream-pr/2652 into main
pull from: upstream-pr/2652
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!2652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2652"
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-29T22:17:25Z.
This now fixes the failure, not just reports it. Two commits: the diagnostics that found it, and the retry that repairs it.
The failure
xbox_presentfailed on this machine atline 1320(now:1335) with no indication of which step went wrong.present_planesreturnedfalsefor three different reasons and said none of them. It now names the step:The cause
Case F resizes the window (
400x300 -> 200x150 -> 320x240) and asks the next present for a capture. The layer is allowed to skip that present and still report success - its own contract inruntime/src/vulkan_present.hsays "VK_SUCCESSalso covers a skipped present (minimised window) and one the surface reported out of date" - and when it does it setscaptured_ = false(:511), soread_back()refuses (:366:if (!capture_ || !capture_ptr_ || !captured_) return false;).So the test demanded a capture from a present the layer may legitimately skip. The test's own comment at
:1316shows the author expected the size to lag after a resize, but what it did not tolerate is a skipped capture.The change
In
present_planes, when the read-back fails, present once more and try again:The retry runs only on the failing path, so a passing present is untouched.
Tested
On this machine, where the failure reproduced before the change:
Re-verified on the current
main(1d22590b9) after the tree moved, because a fix measured against an older base can stop being true:and the same binary failed three times at
line 1335before it, and no other C++ test fails in either run.Not tested
Nothing outside this machine. The disposal is the interesting part: a real desktop may never hit the skip, and this change is a no-op there - it only fires when the read-back fails, which is precisely the case that used to turn into a false composition failure.
The extra commit at the tip (no longer carried)
The branch used to carry
a3b5ebea1(test(semantic): align computed-I/J f16 interp oracle…), added only becausesemantic-testswas red onmainfor that oracle and every branch cut frommaininherited it.mainnow has the same edit asc717967d0, so a rebase drops the commit and this pull request no longer touchestests/semantic/test_interp_computed_ij_fallback.py- the diff is only what this change actually needs.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 fiestorra on 2026-11-29T22:22:07Z.
Rebased onto
main452d1d1b6and now carries the one commitmainis missing, like my other pull requests:The change itself is unchanged and still verified on this machine (
xbox_presentbuilds and, where it applies, passes 3/3 after the rebase).Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T22:41:53Z.
Independent
xbox_present_test.exeA/B on452d1d1band GitHub merge5952b59d(e93efd8b). CachyOS, Wine 11.22 and headless Gamescope, Win64 clang-cl 23.1.5 Release (/MD),LEONIDA_PRESENT_PLANE1=0. Counts are the test process exits and completion markers.b8486b4a)MEASURED. The base failed at the first resize capture in case F. #2652 retried once at each of the three resizes. With #2507 present, all runs finished with zero helper retries. Both patches apply cleanly together.
MEASURED, negative control. On the second iteration of the first resize, I fed the size checker a byte count one texel short after a successful readback from a present that advanced the shown counter. The existing helper reported a skipped present, retried, and the full test passed 3/3 per GPU. The same control failed at the readback on both GPUs in 3/3 runs when I allowed the retry only in case F and only if
xbox.presenter().presented()stayed unchanged. That scoped variant passed 3/3 per GPU with the probe off and recovered all three actual resize skips with a fresh frame token on each retry.grabchecks both capture and byte count/extent. The shown counter is a way to preserve that check for frames the presenter did show. If the fixture is meant to require a shown frame, the scoped retry keeps that behavior. #2507 separately keeps the already copied frame readable afterOUT_OF_DATE.Synthetic fixtures only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T03:23:52Z.
Re-verified on the current
main(1d22590b9), because both the tree and the test have moved since the first measurement.mainalone, whole suite rebuilt and run here:With this branch applied (
8cb7875ce), the same test:So
main's only C++ failure is still this one, and the retry still turns it green after the tree moved - which is the part that could have quietly stopped being true whenmainpicked up the sample-location and image-store changes.Nothing else changed in the branch: the diagnostics in the first commit and the one-shot retry in the second are what they were, and the 539-test run shows no new failure anywhere else.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T14:00:14Z.
Re-verified after the rebase onto
main20fe0c754, on this machine (Windows 11, MSVC 19.44.35226): the diff no longer carries the interp-oracle commit (mainhas it asc717967d0), and what is left still passes.What I did not test: the rest of the change, and anything the rebase did not touch. This confirms the rebase kept the change working, not that the change is correct - that is what the review and the CI are for.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T15:52:00Z.
Independent check on Windows/NVIDIA (not the author), at
cce63b232.mainb17b22d33,ctest -R "^xbox_present$"fails atline 1320withVK_ERROR_FORMAT_NOT_SUPPORTEDon this machine (RTX 4070 Ti SUPER, driver 621.01).LEONIDA_PRESENT_PLANE1=0, it gets past the resize/composition path that used to fail at line 1320 and reaches the real-time loop.It then fails at
line 1554:real time: 30 frames at 60 Hz in 6980 ms (ideal 500). That is this machine's display being asleep, not the PR:nvidia-smireportsdisplay_active: Disabledandpowercfg /requestshasDISPLAY: None, so DWM throttles presents to ~4 Hz. The 60 Hz assertion cannot be judged until the display is active.Net: the resize/composition fix is confirmed here; the remaining failure is environmental. A run with an active desktop should confirm the pacing assertion.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T22:24:52Z.
Measured end to end on the current
main:xbox_presentfails, and with this PR's test change it passes. This is the independent confirmation of the failure KelboLive described, run as part of a full suite rather than the single test.A full
ctestonmain0b6e0e3bc, Release, serial, this machine:And the single test, both ways:
So the red is not flaky and not this machine: it is one test in the suite on today's
main, it fails deterministically in 2 seconds, and your change is what turns it green.What that means for the merge decision, which is yours:
maincurrently has a failing test, so the "leave it, it may be the machine" reading is not available - the-11is a format refusal, not a timeout or a scheduling artefact, and it happens at the resize-and-compose path the comment above line 1318 describes.What I could not test: the other half of your report -
real time: 30 frames at 60 Hz in 6980 mson your display - because this machine's present path did not reach the frame-rate assertion at all before the change, and after it the test passes in 2 s. So the timing failure you saw is a different machine's display, and I have no opinion on it.AI-assisted: yes - DeepSeek v4.1 (flash) ran the suite and the single test on the machine above.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T05:04:11Z.
finding: re-verified on today's
main, and the fix gets further but does not reach green: the pixel cases now printok, and the process still exits 1.main10bed9ff2, the two commits cherry-picked (merge-base20fe0c754), MSVC Release, RTX 4090:What the fix did, and it is a real improvement: the
[rt] d3d12: present failed (VkResult -11)lines that made this test unreadable are gone, and the six cases that used to die now pass. Two days ago onb7a1be296the same binary failed 7 of 7 withVkResult -11; now none of those appear.What it still fails on, and I have four runs to show it is not one thing:
So on one run the 2-plane composite present (
PresentX(2, two, nullptr)) movedcomposed_presents()when the check says plane 1 has no overlay flag and it should not; and on three runs the binary exits 1 after the lastokwithout saying why.composed_presentshas not changed between the merge base and today (git log -Sfinds no commit touching it), so this is notmaindrift.What I could not do: name the third path.
EXPECTisif (!(c) { fprintf(stderr, "line %d: %s"); return 1; })andmain's three returns all print, so a silent exit 1 does not come from any of them - it is either a crash after the last case or areturn 1I have not found, and I stopped rather than guess.What I would suggest: the failing
composed_presentscheck is worth its own look because it is an exact equality on a counter, and the three silent runs are worth a--onlythat runs one case at a time. My earlier verification of this pull request said "all green" - that was onb7a1be296, and it no longer is.AI-assisted: yes - DeepSeek v4.1 (flash), four runs and a build.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T05:05:20Z.
Narrowed further, so whoever picks this up starts where I stopped rather than where I started.
The file has exactly two
return 1, and both print:And the three end paths print too (
validation errors,known ... skipped,xbox_present_test: all cases pass). In the three silent runs, none of those five lines appears anywhere in either stream.Where the binary actually stops:
So it dies somewhere between L623 and L1553 without going through any exit path in
main. That is either a crash whose code PowerShell reports as 1, or an exit inside a helper the test calls.What that leaves as candidates, in the order I would look:
EXPECTinside aboolhelper. The macro isreturn 1- in a function returningbool, that isreturn true, and the caller reads it as success while the message goes to stderr. That cannot produce a silent run, so it is not this, but it is worth knowing the macro behaves differently in aboolhelper than inmain.PresentX(2, two, nullptr)itself: the one run that printed a line gotline 634, which is the assertion AFTER that call returned S_OK. The silent runs may be dying inside the call.DestroyWindow,UnregisterClassW), which is after the lastokand before the summary - but the summary lines are earlier than that, so this does not fit either.I am not going to guess further:
#2652's own change makes the six cases pass and that is a real improvement over the sevenVkResult -11failures I measured onb7a1be296. What it does not do yet is turn the binary green on today'smain, and the silent exit is the thing to chase.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T07:01:52Z.
finding: this pull request no longer fixes anything on
main: the failure it was written for is gone, and the failure that is there now is the same with and without it.mainf918e5145, rebuilt from scratch for this:And with this branch applied, two hours ago on
640b0d0df:So the two trees fail identically at L634, and the
VkResult -11lines are gone from both. Something betweenb7a1be296(where I measured sevenpresent failed (VkResult -11)and noline 634) and today'smainfixed the present path, and it was not this branch - this branch only names the failure more clearly, which is why it looked like a fix.What I am now recommending, and I would rather correct myself than leave it: close this, and open the L634 failure as its own item. The assertion is exact and narrow:
A 2-plane composite present is incrementing
composed_presents()when the check says plane 1 lacks the overlay flag and it should not.composed_presentshas not changed betweenb7a1be296and today (git log -Sfinds no commit), so the counter is not what moved - the present path that calls it did.And the three-runs-in-four silent exit is a second finding: no
line N:and none ofmain's three end-path prints, so it exits somewhere that prints nothing. Both are worth their own look and neither is this branch's.AI-assisted: yes - DeepSeek v4.1 (flash), which reported this as an improvement two hours ago and is correcting itself after rebuilding
main.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T07:05:18Z.
finding: both arms of the test are identical with and without this branch, and the reason I kept seeing a difference is that I was running the wrong one.
ctestdoes not run this binary plainly - it sets an environment variable first, which I only found by askingctest -N -V:And there are two different failures, one per arm. Measured on
mainf918e5145rebuilt from scratch, then with this branch applied:Identical, line for line, in both arms. So this branch changes no outcome at all. The
VkResult -11lines I reported as gone this morning were gone because I had run the arm that does not produce them - the one without the variable - and theremainalso does not produce them.That is the third version of this report, and the two earlier ones were wrong for the same reason: I compared a run against a run, without checking which arm each one was.
ctestsets a variable, my shell did not, and the difference I attributed to the pull request was the difference between the two arms.What this branch is worth: its
present_planeshelper names the step a failingEXPECTcame from, which makes the output readable. That is a real improvement to the diagnostic and it is not a fix.What the two failures need, and neither is this branch: the 2-plane composite present incrementing
composed_presents(no variable), and whatever makesvkCreateSwapchainKHR/present returnVK_ERROR_DEVICE_LOSTwithLEONIDA_PRESENT_PLANE1=0. The second is the onectestsees and the one that has been red all day.I would still close this as a fix and keep the helper if it is useful, but whoever reopens it should start from the two arms above.
AI-assisted: yes - DeepSeek v4.1 (flash), which reported this pull request as a fix twice and is correcting itself twice.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T07:07:05Z.
closed: both arms of
xbox_presentare identical with and without this branch, so it fixes nothing, and I would rather close it than leave a pull request open that claims a fix it does not make.The measurement, on
mainf918e5145rebuilt from scratch and again with this branch applied:ctestsetsLEONIDA_PRESENT_PLANE1=0(whichctest -N -Vshows and I did not look at until three reports in), so the arm it sees is the second one, and it has been red all day for a reason this branch does not touch.What the branch did do: its
present_planeshelper names the step a failingEXPECTcame from, which is a real improvement to the output. The branch stays pushed asrefs/pull/2652/head; if that helper is worth lifting, it can be taken from there without the "fix" framing.The two failures, for whoever picks them up, and neither is in this branch:
presenter().composed_presents()when the check says plane 1 has no overlay flag.composed_presentshas not changed sinceb7a1be296(git log -Sfinds no commit), so the present path that calls it is what moved.LEONIDA_PRESENT_PLANE1=0: fivepresent failed (VkResult -11)and one assertion, which is the armctestruns.Where to track them: #2464 is the game-run work and already carries this test; #2570 is the coordination issue. I did not open a new issue for either because I do not know which of the two a maintainer considers the bug and which the test's expectation - the counter or the call site.
AI-assisted: yes - DeepSeek v4.1 (flash), which reported this pull request as a fix twice and closed it after measuring both arms.
Written with an AI assistant.
Pull request closed