Files
metal2vulkan/docs
Anees Iqbal cee5c7eeb3 Name a draw's read behind a barrier as the cause in the render-pass-split notice
What: a split made so a draw reads a color attachment's texture after a memory barrier
(`Split::AttachedRead`, the pass-start barrier's split among them) is now counted for the
split's degrade notice (`SplitCauses::attached_reads`), whose reason says so: "draws that read
a color attachment's texture after a memory barrier read what its load actions and the draws
before the barrier stored, in a Vulkan render pass instance after theirs, ending N of them".
The `RenderPassSplit` declaration and docs/API.md's catalogue entry list the cause.

Why: such a split counted neither as a barrier split (`self.barrier` is false for a
render-target barrier before any draw, and for one between draws, which records in the
instance) nor as any other cause, so the notice fell to its last reason, "its draws keep
different attachments out of their subpass", which describes no part of this pass. The
conformance replays of the pass-start barrier family showed the split announced on every
barrier row (Apple M3 Max, lavapipe).

How verified: builds (conformance binary, debug). The lane assertion added to
`a_draw_after_a_barrier_at_the_pass_start_reads_the_clear` (the split's reason, and a notice
exactly where a pass split) is NOT yet run; the runtime-sources pin is not re-hashed (the
coordinator's).

(cherry picked from commit 30b797c61b27d4dbe34386c36a27837bb3ed8ead)
2026-11-04 21:54:21 -08:00
..