In place: the shadow notice names in-place images; the lane counts image-to-image copies
Follows the commit before, whose "WIP" line this commit's verification replaces: an in-place image of a texture that does not render takes the usages its descriptor lacks where the device's check passed for what they reach (the storage usage where the writes check passed, the one that lets free padding change; the attachment usage where the renders check passed; the sampled usage always), the first set the device makes the image with, most usages first, each at the texels' pitch in their memory or not made. A texture that renders keeps the route's `storable` (`texture/route.rs`), the strict writes check, as before; renders stay strict. - The `undeclared-usage-shadow` notice's declaration and docs/API.md's entry name the in-place case: a shadow or stand-in where the device's check failed for what the usage lets reach the pages, none where it passed. - `fresh_pages_take`'s docs point at the route's `storable`. - The lane counts a shadow's copies from an image too (`shadow_texels_copied_in_images`), which is how the usage shadow of an image in place copies, and prints the count on either path. - The module docs split the declared usage, the lacking usages and a render target's usages into their own entries. Verified: pending (clippy, rustdoc, the runtime's unit tests, lavapipe and Iris lanes run next). (cherry picked from commit 11d16a1b92cfdca3c409ff2f0501a67f0c1b607c)
This commit is contained in:
1 parent
16428e987f
commit
11a1901a23
4 files changed
+50
-38
No files matched your search
+5
-2
@@ -2434,8 +2434,11 @@ bound.
|
||||
- `metal2vulkan-degrade-undeclared-usage-shadow` (performance). `UndeclaredUsageShadow`: A texture
|
||||
bound by a slot as a storage image without `ShaderWrite` usage, or as a sampled one without
|
||||
`ShaderRead`, whose image lacks that usage because adding it would cost the image its size or the
|
||||
driver's compression: the binding takes an image of its own with both shader usages, a shadow of
|
||||
the texture's texels. Cost: its texels are copied into an image of its own before each command
|
||||
driver's compression, or, for a texture in place over host pages, because the device's in-place
|
||||
check failed for what the usage lets reach them: the binding takes an image of its own with both
|
||||
shader usages, a shadow of the texture's texels. Also a texture without `RenderTarget` usage that
|
||||
a render pass renders into, through a scratch image that has it, except a texture in place whose
|
||||
image took that usage where the check passed for renders over its pages. Cost: its texels are copied into an image of its own before each command
|
||||
that binds it beyond its declared usage, and back after each write through it.
|
||||
- `metal2vulkan-degrade-heap-two-plane-texture` (precision). `HeapTwoPlaneTexture`: A texture of
|
||||
`RGB10A8_2P_XR10` or its sRGB twin made in a heap whose planes no shadow of the heap's bytes
|
||||
|
||||
Reference in new issue
Block a user