Files
metal2vulkan/docs
Anees Iqbal 12f7267750 Depth comparisons record RestrictedDepthRange on every device without VK_EXT_depth_range_unrestricted, MoltenVK included
Without the extension Vulkan gives a depth image no value outside
[0, 1]: a copy may take none (VUID-vkCmdCopyBufferToImage-pRegions-07931),
and a render write is clamped to the viewport's depth range. MoltenVK's
driver was measured to keep such values
(DriverFact::DepthImageKeepsValuesOutsideUnitRange), and its depth
comparisons required that property in place of the note; the owner's
rule is never to rely on undocumented Vulkan behaviour, so the fact
follows the extension and nothing else. With the extension a comparison
records nothing already, so the fact, the
VkProperty::DepthImageKeepsValuesOutsideUnitRange it derived and the
texture plan's kept_depth_range are removed: depth_comparison records
RestrictedDepthRange wherever the extension is not enabled (ANV, RADV,
MoltenVK), a precision note, logged and never fatal.

SEMANTICS_VERSION 1995: MoltenVK's comparing stages record the note and
no longer require the property. The codec drops the variant by name (no
format bump: a removed variant's tag stays unused). docs/API.md's
restricted-depth-range entry, FAST-PATHS rows 79 and 80, the note's and
the measurement table's docs, engine_depth_range's test (the note on
MoltenVK too, no module requiring the extension), driver_facts' MoltenVK
row and api_signatures (three variants) follow. The compare-clamp lane
predicts restricted-depth-range by the extension alone again.

Verification follows in the lane jobs; the golden tables and the
authored compile census are re-blessed on development.

(cherry picked from commit 90d231de945294c8428c05f79946f09bbb426819)
2026-11-08 18:15:23 -08:00
..