Repository navigation
xbox_present: a skipped present after a resize is not a composition failure (and the helper says which step failed) - #2652
Conversation
fd743b4 to
e93efd8
Compare
|
Rebased onto The change itself is unchanged and still verified on this machine ( Written with an AI assistant. |
|
Independent
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
Synthetic fixtures only. AI-assisted with OpenAI Codex. |
|
Re-verified on the current
With this branch applied ( So 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. |
It returned false for a missing frame token, a wrong HRESULT and a failed read-back, so a failing EXPECT pointed at a lambda that could have failed three ways. On this machine the read-back is the one that fails after the window resize (case F), and it took a rebuild to find that out. Written with an AI assistant.
…ailure Case F resizes the window and demands a capture from the next present. The layer is allowed to skip one - its own contract says VK_SUCCESS covers "a skipped present (minimised window) and one the surface reported out of date" - and it sets captured_ = false when it does, so read_back() returns false and the EXPECT failed. Retry once: the following present shows the frame. Verified on this machine, where the failure reproduced: three runs exit 0 and ctest reports xbox_present Passed. Before the change the same binary failed at line 1335 with "read-back failed", three times. Written with an AI assistant.
… p2 narrow Update `tests/semantic/test_interp_computed_ij_fallback.py` (ProjectLeonida#2239) to narrow `v_interp_p2_f16` reference expectations toward zero (`f16_rtz` / `f16_rtz_bits`), matching `SHADER-468` (ProjectLeonida#1181). AI-assisted.
e93efd8 to
1a0cc76
Compare
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 no other C++ test fails in either run.
and the same binary failed three times at
line 1335before it. The message above is printed on each resize round, which is the evidence that the skipped present is the one being recovered.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.
Written with an AI assistant.
The extra commit at the tip
The branch also carries
a3b5ebea1(test(semantic): align computed-I/J f16 interp oracle…), the commit #2633 carries. It is there only becausesemantic-testsis red onmainfor the interp oracle, so every branch cut frommaininherits that failure; it has nothing to do with this change and is disposable - when #2633 or #2566 lands, a rebase drops it. If it conflicts with #2566 ontests/semantic/test_interp_computed_ij_fallback.py, the two sides are the same edit (a parameter namedxvsval), so taking either resolves it.