From 36e763e80ec2a89ce9eda31d25205df9123d4e24 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 21:37:24 -0800 Subject: [PATCH] rt README: the Iris Xe lays a linear image's rows at the row itself The known gap on textures over buffers named NVIDIA's (128 bytes) and AMD's (256) linear row rounding. bugcheck measured the Iris Xe (ms01, ANV, not exclusive): a raw LINEAR R8G8B8A8_UNORM image of SAMPLED|STORAGE has rowPitch 9792 at 2448x3264 and 15536 at 3884x2576, the row itself (m3-max-61686), and the runtime's own linear image, under each usage the answer tries (read, read+render target, read+write), pitches at the row at every width from 1 to 8192 (m3-max-61688), so minimum_linear_texture_alignment(RGBA8Unorm) answers 4 there. A pitch rounded past the row is copied on that device; the sentence says so. Doc only. --- crates/metal2vulkan-runtime/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 9484c7805..d3e45d00d 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -1443,7 +1443,9 @@ made, with no lock, and never rewritten for layouts. Metal does not make, counted (`Metrics::over_copies`). A program that rounds its pitch past the device's own (`Device::minimum_linear_texture_alignment`), or offsets its texture off the image's memory alignment, takes them: NVIDIA lays a linear image's rows at the row - rounded to 128 bytes, AMD to 256, so a pitch rounded to 256 is copied on NVIDIA. A render + rounded to 128 bytes, AMD to 256, so a pitch rounded to 256 is copied on NVIDIA; the Iris Xe + lays them at the row itself (the answer is the texel's bytes), so a pitch rounded past the row + is copied there. A render target over a buffer is copied on NVIDIA, whose linear tiling does not take it in place. A render target whose advertised subresource ends past its own rows or its buffer is copied too: llvmpipe (lavapipe) advertises a linear image's height rounded up to 4 rows and stores whole