Files
metal2vulkan/docs
Anees Iqbal 58b5fad7f3 Translator: reads no VK_EXT_depth_range_unrestricted; a depth comparison notes the range everywhere
Where a profile enabled VK_EXT_depth_range_unrestricted the translator clamped a fragment
function's depth output to [0, 1] itself (Vulkan then stores it unclamped) and recorded no
PrecisionNote::RestrictedDepthRange for a depth comparison. The runtime never enables the
extension (its README: the floor does not require it, and replace_region refuses a float depth
upload as Gap::FloatDepthUpload), so on its devices the depth was already Vulkan's own clamp
and every depth comparison already recorded the note; once validation enables what the runtime
enables nothing runs either arm. Both go: DepthClamp::clamps and clamps_fragment_depth (the
[0, 1] selects now run under the depth clamp range input alone, as they did on every profile
without the extension), and depth_comparison records the note unconditionally. The enable-set
facts class the extension as described and never enabled (the core reads none of it), so
recommended_enables no longer names it. The VkExtension vocabulary stays.

Docs: PrecisionNote::RestrictedDepthRange's doc and docs/API.md's catalogue entry say the note
is recorded on every device, the runtime enabling no VK_EXT_depth_range_unrestricted.

Tests: the test that compared a depth output with and without the extension and the test that
the extension is read from a description go; the comparison test records the note on every
profile, RADV's (which lists the extension) included; the kill and depth-clamp-range tests stay.

Class 1 of the planner's rule (an alternative to what the runtime runs). No public item goes
(signatures.py --check clean); the consumer's checkout (reims-vgpu at bd9d6ae85a) calls no
recommended_enables and names the extension nowhere. Product lines: +34 -57 (most of both
are doc lines). Modules change only on profiles that enabled the extension (RADV, lavapipe,
NVIDIA golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile's enabled set
is in every cache key).
2026-11-22 00:17:20 -08:00
..