Pooled memory: no bound on a texture's bytes; ShadowCause::LinearCost is gone
The owner, through reims: zero copy, in place where possible, shadow copies a fallback and never a first option. A tracked texture over a Private buffer of the runtime's pooled memory whose rows the device's own linear image lays out otherwise was a shadow past 48 KiB to its pitch (TextureShadowReason::LinearCost), a speed choice measured on an Iris Xe alone that shadowed 1001 of an RTX 2080 guest boot's 1366 textures. It now takes its DRM_FORMAT_MOD_LINEAR image at Metal's pitch at any size, wherever the device makes one and its check of the pooled memory passed, as a texture over a Shared buffer already did; it is a shadow only where the device makes no such image (its format, usage, pitch or limits), its policy is HostPageTexturePolicy::Shadow, or the check failed or is pending (a pending one still moves in place once it passes). Removed with the bound: in_place::POOLED_PITCHED_BYTES, ShadowCause::LinearCost and the public TextureShadowReason::LinearCost (a breaking change of metal2vulkan-runtime's surface: api_signatures.tsv loses its variant), texture_spans.rs (the runs of bytes textures were made over, which only the bound read) and the moves it fed (MoveAfter::Aliases, LoneShadow, the buffer's note and wait), Texels::only_commands_write (the bound's alone), the bench behind the bound (runtime_lane::pooled_draw_costs, its crossover additions included) and aliased_surfaces' cost bench. aliased_surfaces' first check now asserts every texture over one surface's bytes takes the image at Metal's pitch, the first included, and a read copies nothing; its one-after-another check, about the first texture's shadow, is gone. storage_over_buffer is one function again (REFUSALS.md regenerated for the name). API.md, HOWTO.md, FAST-PATHS.md (the in-place row) say "at any size". RUNTIME_VERSION is not bumped here: the landing bumps it and re-pins the runtime sources.
This commit is contained in:
1 parent
20d84ebf33
commit
0d144ec0de
21 files changed
+69
-1597
No files matched your search
+1
-5
@@ -391,11 +391,7 @@ over it is then a linear image at its pitch wherever the device lays one out so,
|
||||
the device makes `DRM_FORMAT_MOD_LINEAR` images (`VK_EXT_image_drm_format_modifier`), one at the
|
||||
pitch where its in-place check passed for its pooled memory (for a texture that renders, the
|
||||
check of renders that lets a pass change those bytes, as the declaration does, and no byte past the
|
||||
last row's pitch) and, for a tracked texture over a `Private` buffer, its rows take no more bytes
|
||||
than a bound past which such an image renders and samples slower than the shadow (over a `Shared`
|
||||
or `Managed` buffer, for an untracked texture, and over bytes another texture was made over, any
|
||||
size; the first texture's shadow moves to its image once another is made over its bytes)
|
||||
(`WorkCounts::pooled_pitched_images`; `TextureShadowReason::LinearCost` past it;
|
||||
last row's pitch), at any size (`WorkCounts::pooled_pitched_images`;
|
||||
`HostPageTexturePolicy::Shadow` turns it off; one made before that check answered is a shadow
|
||||
that moves to the image at a quiet commit once it passed, as one over host pages moves in place,
|
||||
`WorkCounts::pooled_textures_moved_in_place`), its subresources holding each row's bytes after its
|
||||
|
||||
Reference in new issue
Block a user