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)
This commit is contained in:
1 parent
34bafa410d
commit
cee5c7eeb3
5 files changed
+56
-11
No files matched your search
+7
-6
@@ -1689,12 +1689,13 @@ bound.
|
||||
attachment of the later draws' subpass alone; or a tile dispatch runs between two instances; or
|
||||
some of its draws render some of its layers, each run of them in an instance over those layers; or
|
||||
a memory barrier over buffers or textures orders its draws after it behind those before it, which
|
||||
a barrier between instances does. Not where the pixel interlock alone splits the pass on a device
|
||||
whose driver ran such a pass no slower split than whole
|
||||
(`DriverFact::InterlockedPassSplitNoSlower`): the split is then its faster form. Cost: each
|
||||
instance after the first loads the attachments and each before the last stores them, with a
|
||||
barrier from everything before to everything after between them: on a tiler, a tile flush per
|
||||
split.
|
||||
a barrier between instances does; or a draw reads a color attachment's texture after a memory
|
||||
barrier, and reads what the pass's load actions and earlier draws stored where the barrier orders
|
||||
them. Not where the pixel interlock alone splits the pass on a device whose driver ran such a pass
|
||||
no slower split than whole (`DriverFact::InterlockedPassSplitNoSlower`): the split is then its
|
||||
faster form. Cost: each instance after the first loads the attachments and each before the last
|
||||
stores them, with a barrier from everything before to everything after between them: on a tiler,
|
||||
a tile flush per split.
|
||||
- `metal2vulkan-degrade-amplification-draws` (performance). `AmplificationDraws`: A draw under
|
||||
vertex amplification that Vulkan multiview cannot express (view mappings that offset the viewport
|
||||
or name layers out of order, more amplifications than the device's views, or a pipeline that
|
||||
|
||||
Reference in new issue
Block a user