Say a texture's image of any storage mode may overflow past device-local memory

Every texture's image is placed in Private memory (image_plan.rs), so a
Shared or Managed texture's image overflows as a Private one does; the
notice's declaration, the catalogue entry, the runtime README and the
lane's site note now say so.

Verified: nothing (docs and comments only).
(cherry picked from commit ec5b5a70fdea000eb9a7d5ab84e5aaad02fffed4)
This commit is contained in:
Anees Iqbal committed 2026-11-05 02:08:31 -08:00
1 parent a720be9cf5
commit 749daae1d9
4 files changed
+18 -16

No files matched your search

+10 -9
View File
@@ -2000,15 +2000,16 @@ bound.
it across the bus, as a discrete Mac's GPU does a shared resource: coalesced accesses at the bus's
speed, and scattered writes far slower (4-byte stores 12 bytes apart at 0.08 GB/s on an RTX 3090,
where device-local memory takes them at 850 GB/s).
- `metal2vulkan-degrade-device-memory-overflow` (performance). `DeviceMemoryOverflow`: A `Private`
buffer, heap or texture the program makes, or a `Managed` buffer's own bytes on a device without
unified memory, lies in system memory: no device-local memory type the resource takes had room
for it, so it takes one that is not device-local, as Metal makes such a resource past a discrete
GPU's memory rather than refuse it. `WorkCounts::device_memory_overflows` counts each such
placement. A driver that pages device-local memory (`VK_EXT_pageable_device_local_memory`, which
the runtime enables where listed with its feature) may page memory out to make room instead, and
then nothing overflows. Cost: the GPU reads and writes it across the bus, at the bus's speed, for
as long as it lives; resources made once device-local memory has room again lie there.
- `metal2vulkan-degrade-device-memory-overflow` (performance). `DeviceMemoryOverflow`: A buffer or
heap of `Private` storage the program makes, a `Managed` buffer's own bytes on a device without
unified memory, or a texture's image, of any storage mode, lies in system memory: no
device-local memory type the resource takes had room for it, so it takes one that is not
device-local, as Metal makes such a resource past a discrete GPU's memory rather than refuse it.
`WorkCounts::device_memory_overflows` counts each such placement. A driver that pages
device-local memory (`VK_EXT_pageable_device_local_memory`, which the runtime enables where
listed with its feature) may page memory out to make room instead, and then nothing overflows.
Cost: the GPU reads and writes it across the bus, at the bus's speed, for as long as it lives;
resources made once device-local memory has room again lie there.
- `metal2vulkan-degrade-device-filtered-mipmaps` (precision). `DeviceFilteredMipmaps`:
`generate_mipmaps` of a filtered format (an integer format's texels are picked as plain Metal
picks them): each level is the device's linear filter of the one above at the scaled texel