Files
metal2vulkan/crates
Anees Iqbal 8d4c3f3db1 linear_runs, merge_scratch: count a window only once the device's in-place check ended
What: each test of the two modules waits for the device's in-place check of
textures over host pages to end before it makes anything (merge_scratch::settled,
where the policy runs one), and opens each window of the device's counts through
merge_scratch::counts_alone, which asserts that no verdict is pending: the check
no longer runs.

Why: an RTX 5080 under load failed
linear_runs::passes_reading_host_pages_form_one_run with 727 passes through
copies for the test's 706. The counts are the device's. The check renders passes
over linear images of its own on its own thread, and the device counts them with
the test's. The rule the test forces (linear_rule_forced) renders those passes
apart too. That run's output holds the clear-copies notice for an R8Unorm linear
attachment, and the test makes no R8Unorm texture. Once every verdict is known,
the check runs no more, so a window opened after it holds the test's work alone,
exactly. The device memory bounds in merge_scratch read the same windows. A
target over host pages made after the verdicts takes its place for good, where
one made before them is a shadow that may move in place at a later commit.

How verified: see the tip's evidence (5080 beside a lane x20, lavapipe, MoltenVK,
and a probe without the settle showing the check running as the window opens).

(cherry picked from commit 17384c19019c8d305f66fa38b63a8f3fd2ffbd25)
2026-11-08 07:13:00 -08:00
..