Take the storage form for a private target whose self-read splits for want of STORAGE
A draw that reads its pass's color attachment at its own pixels after a render-target barrier takes the snapshot only where no later fetch could render the attachment through a stand-in (`keeps_own_attachment`: the image has STORAGE). A private texture whose device lays an image out otherwise with STORAGE (with_free_usage leaves it off: the Iris Xe's optimal BGRA8Unorm, as the orchestrator relayed from the 4845 A/B, 12-15 ms a frame of 30 splits for the private selfread target) split at every such read, every frame, for good. The fallback now notes the texture for its storage form (texture/storage_form.rs), the switch a fetching pass's scratch already takes: at a later commit its image is made again with STORAGE and its texels copied in once, announced as fetched-target-storage, and its later passes' readers take the snapshot. A texture noted already returns before its plan is asked again, as a reader that splits notes it at each such draw. Test: tests/self_read_storage.rs (device test), with a test-only switch that makes STORAGE cost every image (DeviceShared::storage_costs_forced, read in Device::if_free): a private BGRA8Unorm target's first pass splits and takes the form at its commit, its later passes' readers take the snapshot, each pass's texels Metal's; where the device does not take the path, every reader splits and nothing swaps. Docs: the fetched-target-storage declaration and its API.md entry, the FAST-PATHS attachment-read row. (cherry picked from commit e0444b4029c9372197faf8c5bab3d967cb9bb543)
This commit is contained in:
1 parent
87617be3cd
commit
be1f1c141b
9 files changed
+293
-7
No files matched your search
+2
-1
@@ -1838,7 +1838,8 @@ bound.
|
||||
copied into it before the pass on a `Load` and back after it on a `Store`.
|
||||
- `metal2vulkan-degrade-fetched-target-storage` (performance). `FetchedTargetStorage`: A runtime
|
||||
texture that a pass rendered into a scratch image for want of `STORAGE` (`fetch-through-scratch`
|
||||
through the pixel interlock) took its storage form: its image made again with `STORAGE` and its
|
||||
through the pixel interlock), or whose draw that read it at its own pixels after a memory barrier
|
||||
split its pass for want of it, took its storage form: its image made again with `STORAGE` and its
|
||||
texels copied in once, at the commit of the device's only uncommitted command buffer; with a
|
||||
submission check, once that command buffer's checks ran at its submission and every encoder of it
|
||||
ran. Announced once per device, whatever `DeviceOptions::announce_each` says, before that command
|
||||
|
||||
Reference in new issue
Block a user