From eaa39e35eba9d8e98cfcc902b286b3c4fa577c8f Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 5 Nov 2026 08:00:33 -0800 Subject: [PATCH] :memo: Say what a Managed texture with no CPU copy is now [ci skip] The design listed depth, stencil, PVRTC and three-component formats as the Managed textures that keep no CPU copy. A depth or stencil one in Managed storage ends the process before the bundle makes it, as on the x86 oracles (882198139), and Metal has no three-component pixel format. What is left, a PVRTC one, is the platform's texture alone, one copy on any GPU, reached by the CPU through the staging blit a Shared texture's calls wait for, which sees the GPU's writes with no synchronize: inside Q2's envelope, as the Intel 630's and the M3's Managed textures behave. --- docs/graphics-kext/design.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/graphics-kext/design.md b/docs/graphics-kext/design.md index 35410c308..04829e23e 100644 --- a/docs/graphics-kext/design.md +++ b/docs/graphics-kext/design.md @@ -1836,8 +1836,12 @@ shares the CPU's memory: - In the guest, `replaceRegion:` and `getBytes:` are memcpys of the block, and `replaceRegion:` posts its region; neither waits for the host, but for the `getBytes:` of a two-copy texture on shared memory, above. A format the - layout has no block for (depth, stencil, PVRTC, three-component) keeps no CPU - copy. + layout has no block for (PVRTC) keeps no CPU copy: the texture is the + platform's alone, one copy on any GPU, and the CPU reaches it through the + staging blit a Shared texture's calls wait for, which sees the GPU's writes + with no synchronize, as the Intel 630's and the M3's Managed textures do + (dgpu-oracle.md Q2). A depth or stencil texture in Managed storage ends the + process first, as on both x86 oracles. - Until the device's identity answers carry `hasUnifiedMemory`, the host takes the two copies on every GPU, which hold Metal's contract on any of them.