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
-1
@@ -705,7 +705,7 @@ Each refusal's sites, with the function that builds it.
|
||||
- `feature::SeqCstFence`: `crates/metal2vulkan/src/lower/sync/barrier.rs (require_seq_cst)`
|
||||
- `feature::PostDepthCoverage`: `crates/metal2vulkan-runtime/src/families/features.rs (state)`; `crates/metal2vulkan/src/lower/stage_io/plan.rs (param)`
|
||||
- `feature::WideLines`: `crates/metal2vulkan/src/pipeline/link/band.rs (plan, 3 sites)`
|
||||
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture.rs (image)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs (storage_decided)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (new_surface_planes_texture)`
|
||||
- `gap::Textures`: `crates/metal2vulkan-runtime/src/blit_texture.rs (check_depth_view)`; `crates/metal2vulkan-runtime/src/buffer_texture.rs (view_usage)`; `crates/metal2vulkan-runtime/src/pipeline/mod.rs (compile_error)`; `crates/metal2vulkan-runtime/src/texture.rs (host_copy)`; `crates/metal2vulkan-runtime/src/texture.rs (image)`; `crates/metal2vulkan-runtime/src/texture.rs (image_error)`; `crates/metal2vulkan-runtime/src/texture.rs (new_image_starting)`; `crates/metal2vulkan-runtime/src/texture.rs (storage_over_buffer)`; `crates/metal2vulkan-runtime/src/texture/surface_two_planes.rs (new_surface_planes_texture)`
|
||||
- `gap::ResourceHeap`: `crates/metal2vulkan-runtime/src/binding.rs (descriptor)`
|
||||
- `gap::SparseHeaps`: `crates/metal2vulkan-runtime/src/sparse/encoder.rs (first_slice)`; `crates/metal2vulkan-runtime/src/texture.rs (make_aliasable)`
|
||||
- `gap::SparseTileMaps`: `crates/metal2vulkan-runtime/src/binding.rs (slot_tile_map)`; `crates/metal2vulkan-runtime/src/sparse/texture.rs (sparse_refusal)`; `crates/metal2vulkan-runtime/src/texture.rs (sparse_zeroing, 2 sites)`
|
||||
|
||||
Reference in new issue
Block a user