Files
metal2vulkan/docs
Anees Iqbal b06871f199 Refuse a cube or cube array over a surface's plane as Metal's own refusal
What. Buffer::new_texture_with_iosurface_plane over a plane of a
surface with planes answers a Cube or CubeArray descriptor
Invalid(BufferTextureProblem::TextureType), where it answered
NotImplemented(SurfacePlaneShape). BufferTextureProblem::TextureType's
doc and basis name the plane's case; SurfacePlaneShape's doc, the
module's Beyond the plane's rows, FAST-PATHS.md's known gap and
REFUSALS.md (regenerated) follow.

Why. Plain Metal itself stops it on the M3 Max under macOS 27.0.1, the
release the runtime imitates: with the API validation layer off it
asserts "carriesComplexTexture || numFaces == 1" in
-[IOGPUMetalTexture initWithDevice:descriptor:iosurface:plane:field:args:argsSize:]
and ends the process, for a cube (bgra1x2.cube.16) and a cube array
(bgra1x2.cubearray.16) alike (probes/surface_texture_envelope.m, run
with --hazard so each shape runs in a child process, job m3-max-4776).
What Metal refuses is a typed Invalid, never a runtime gap.

Tests: linear_plan's a_surface_plane_s_other_shapes_follow_the_probe
expects TextureType for a 64x64 cube and a 16x16 cube array over a
planar surface; it fails without the check (both planned PlaneShape).

Verified (same tree content on the previous base, replay-27 9a1a8abf1d):
runtime unit 56/56 on msi-laptop (m3-max-4867), runtime lane 174/174 on
lavapipe on homelab-gem10-1 (m3-max-4868). Re-checked on this base by the
branch's check job.

(cherry picked from commit 7ea41c39ea9f471fcb14776f9c2c551cb4827209)
2026-11-07 12:44:46 -08:00
..