Files
metal2vulkan/docs
Anees Iqbal 1687f8fc38 Validation: a 32-bit float depth texture is filled by a draw through the runtime, and a depth outside [0, 1] is the runtime's limit
The runtime takes no upload of a 32-bit float depth (Gap::FloatDepthUpload, which its own texture
and blit tests hold both ways). Kernel and render cases that bind a Depth32Float texture stayed
on the executor's own context. Now they run through the runtime: the run fills each such texture
by a draw, as a guest fills one.

The fill:
- The owned fixture depth_fill.metal is regenerated with scripts/regen-air-fixtures on the M3
  (m3-max-61107). It holds a fullscreen vertex function and a fragment function that writes
  depth(any) from a buffer of texels by pixel.
- platform::runtime_depth draws one pass per level and slice into the texture's depth
  attachment, under an always-passing depth test that writes. The texture is made with
  RenderTarget usage beside its declared usage.

DepthOutsideUnitRange becomes the runtime's limit (Limit::Runtime) and qualifies on Metal, as
ruled. A draw writes depths clamped to the viewport's [0, 1], so no runtime call puts a NaN, a
negative value or a value above 1 where Metal's texel holds it. The case checker now raises the
requirement from the case's literals on every device (executor_contract::case_requirements, via
depth_range::depth_range_requirement). The literals checked are each Depth32Float texture, each
texture-array element, each argument buffer's texture, and the depth attachment's initial depth.
The old executor's device-gated check (plan_resources::require_depth_range, which read
VK_EXT_depth_range_unrestricted) and its two call sites are deleted. The fill refuses such a depth
too, typed, so it never clamps one silently. No source fact carries the requirement, so the
source census is unchanged. Of the committed public cases, 7 kernel cases close as runtime-refused
(4ac0d4322d, 5d9f284f87, 70064cea52, f04e9b48c8, 59b3a9a43e, 6955da3062, b3d8e09b92). Their Metal
rows stay as committed.

ENGINE_EXECUTOR_ABI goes to v191.

Tests:
- Unit: the requirement from each literal kind, and its limit, stops and evidence gap.
- The Runtime and qualifies_on_metal lists.
- Routing: a Depth32Float texture now routes.
- Device: a_float_depth_texture_is_filled_by_a_draw_and_reads_back_as_authored. Both runs read
  eight depths of a 4x2 texture back exactly, and through the runtime a depth of 2.0 is refused
  as depth_outside_unit_range.
- The device test of the old gate is deleted with the gate.
2026-11-20 19:06:55 -08:00
..