From e78626ce6d9e82568c0e73f7d011802c8fbb4eae Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 11:15:21 -0800 Subject: [PATCH] Runtime README: the pitch copies' counts on a recorded compute play, their cost unresolved What: the known gap of textures over a buffer whose pitch the device's linear image does not meet gains one measured row: 80 textures of 2448x3264 RGBA8 at 9,984 bytes a row against the RTX 5080 Laptop's linear row of 9,856 took 206 copies of 3,835,938,720 bytes in three frames (95.2% of that play's pitch-copy bytes), and their cost on those frames was not resolved. Why: bug row 68 closes as a known gap (planner 11-22). The A B A B play against a probe that skips every Pitch copy read means under 5% (GPU busy +0.86%, wall +2.16%) with the two pairs of opposite sign, so the line states the counts and that the cost was not resolved, not a cost. Verified: m3-max-68398 (RTX 5080 Laptop, NVIDIA 615.71.09, the stream played in full, 1115 frames an arm, 0 refused; the probe's pitch counters read 0 and its skip printed 120 lines an arm); probe branch steelbrain/pitchcost-probe, never lands. Docs only. --- crates/metal2vulkan-runtime/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 19e487363..dcef6542b 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -1654,7 +1654,11 @@ made, with no lock, and never rewritten for layouts. 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; 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 + is copied there. In a recorded play of a compute workload on the RTX 5080 Laptop, 80 textures of + 2448x3264 RGBA8 at 9,984 bytes a row, against the device's linear row of 9,856, took 206 copies + of 3,835,938,720 bytes in three frames, 95.2% of the play's pitch-copy bytes; their cost on those + frames was not resolved: the means read 0.9% more GPU busy time and 2.2% more wall time, with + the two pairs of opposite sign (job m3-max-68398). 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