From 642873f4e87f4d596ea14ce7a8be231276b57372 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 04:03:43 -0800 Subject: [PATCH] Pooled moves: the move's helpers private to the texture module AliasCount and Device::pooled_move_image were pub(super) while the Image they name is private to the texture module, which rustc warned of (private_interfaces); both are used only by the texture module and its storage_form child, so they are private now. Verified: the M3 build of the runtime and validation tests (job m3-max-8152) gave that warning alone. (cherry picked from commit 9f01a92463846b3f7e5f36d06db44a4a141ab179) --- crates/metal2vulkan-runtime/src/texture.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/texture.rs b/crates/metal2vulkan-runtime/src/texture.rs index 194eb9251..a595f9850 100644 --- a/crates/metal2vulkan-runtime/src/texture.rs +++ b/crates/metal2vulkan-runtime/src/texture.rs @@ -858,7 +858,7 @@ type Aliased = Result<(Arc, AliasCount), (String, Option)>; /// the texture is made (`Device::storage_over_buffer`), or as a shadow made before its pooled /// class's verdicts moves to it (`texture/storage_form.rs`). #[derive(Clone, Copy)] -pub(super) struct AliasCount { +struct AliasCount { /// A `DRM_FORMAT_MOD_LINEAR` image at Metal's pitch (`WorkCounts::pooled_pitched_images`). pitched: bool, /// Its rows (or slices) lie apart over bytes its buffer declares unobserved @@ -870,7 +870,7 @@ pub(super) struct AliasCount { impl AliasCount { /// Count the image in `counts`. - pub(super) fn count(self, counts: &crate::work_counts::Counters) { + fn count(self, counts: &crate::work_counts::Counters) { if self.pitched { counts.pooled_pitched_image(); } @@ -3108,7 +3108,7 @@ impl Device { /// with, over `texels`: the image the texture would have been made with had the verdict been /// known then ([`alias_over_device`](Self::alias_over_device), of its declared plan), with what /// it counts as it moves in; `None` where the device makes none. - pub(super) fn pooled_move_image( + fn pooled_move_image( &self, pending: &in_place::PendingMove, texels: &Texels,