fd blocks: the new class in the remaining matches; Exportable without Debug

Verified: m3-max-10740's clippy (E0004, E0277).
(cherry picked from commit bc6f47f6bfe44eb01f29abe94a0ec9badb55b7c0)
This commit is contained in:
Anees Iqbal committed 2026-11-09 01:44:39 -08:00
1 parent d479913bb4
commit c87d480870
3 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -295,7 +295,7 @@ pub(super) fn fd_buffer_types(
}
/// What a new block's memory is allocated exportable as ([`BlockMaker::make_as`]).
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy)]
enum Exportable {
/// Nothing.
No,
@@ -534,9 +534,12 @@ impl Device {
PagesClass::Pointer | PagesClass::Fresh => self.host_unplaced(plan, texels, facts),
// A texture over the runtime's pooled or exported memory takes its image there
// (`Device::alias_image`), never over host pages.
PagesClass::Pooled | PagesClass::ExportedFd | PagesClass::ExportedDmaBuf => Err(
internal("an image in place over the runtime's pooled or exported memory"),
),
PagesClass::Pooled
| PagesClass::ExportedFd
| PagesClass::ExportedDmaBuf
| PagesClass::FdBlocks => Err(internal(
"an image in place over the runtime's pooled or exported memory",
)),
}
}
@@ -3560,7 +3560,7 @@ impl Counters {
}
// A texture over the runtime's pooled or exported memory is no texture over host
// pages: its image at Metal's pitch is counted apart (`pooled_pitched_image`).
P::Pooled | P::ExportedFd | P::ExportedDmaBuf => {}
P::Pooled | P::ExportedFd | P::ExportedDmaBuf | P::FdBlocks => {}
}
if pitched {
self.pitched_host_images.fetch_add(1, Ordering::Relaxed);