Files
metal2vulkan/scripts/refusal-surface
Anees Iqbal 867c7e506e Make BC, texture-buffer, 1D and one-slice array textures over surfaces
The surface probe (surface_texture_envelope, potluck m3-max-1581, -1596,
-1598) measured which bytes textures over IOSurface planes reach on an AMD
5300M, an Intel UHD 630 and an M3 Max:

- BC over a surface's rows (oracle_surftex 66, 67, 125, 131, 147, 148): both
  x86 GPUs' blits, Private ones too, and getBytes take block row j at the
  plane's offset + j x bytesPerRow; the UHD 630's replaceRegion too. The
  runtime makes BC1 to BC7 there as a shadow image whose copies move those
  block rows (Texels::blocks, block-aware plane_copy_regions and copy unit).
  Over a surface without planes Metal's texel-row height check is kept.
- A texture buffer over a surface (35, 121, 129): contiguous from the plane's
  offset on the M3 and the 5300M. Over a planar surface it may run past a row.
  It now takes the descriptor's options, as a surface's other textures do.
- A 1D texture whose row fits (116) and a 2D array of one slice (117, 127):
  the 2D texture's bytes on all three.

Every other shape Metal makes over a planar surface's plane (wider rows, more
levels, other types) has no one layout across the three GPUs and the CPU
calls: refused NotImplemented(SurfacePlaneShape), where it was Invalid.

Verified: not yet built (next commits fix forward).
(cherry picked from commit a937933adfe5f451bd1d79e1605adb124c841dae)
2026-11-05 15:26:46 -08:00
..