SEMANTICS_VERSION 1996, RUNTIME_VERSION 1936: depth stays in [0, 1] on every device without VK_EXT_depth_range_unrestricted

Picks air11's steelbrain/depth-upload-clamp (a63c3646dd..184d622fa5, ten commits). Its records
commit 07d0c2afe8 is left out: development's next whole-set re-bless measures those 32 cases
with this change on.
- Depth uploads clamp into [0, 1] and announce restricted-depth-upload on every device without
  VK_EXT_depth_range_unrestricted, MoltenVK included. This covers replace_region, blits from
  buffers (direct and staged), the Depth32Float_Stencil8 depth blit, colour-to-depth copies and
  the heap texture's copy in. ImageFacts::depth_clamps is "the extension is absent" and nothing
  else, so no device is trusted to keep values outside [0, 1] beyond what Vulkan documents.
  This fixes round 062's M3 lane red, VUID-vkCmdCopyBufferToImage-pRegions-07931 on MoltenVK.
- The translator's depth comparisons record RestrictedDepthRange on the same devices.
  DriverFact::DepthImageKeepsValuesOutsideUnitRange no longer exempts MoltenVK.
- The validation executor stops the engine candidate for a case whose depth lies outside [0, 1]
  on such a device: an unsupported requirement, never a silent clamp.

Verified on air11's branch:
- M3 GPU-AV m3-max-10181: 575/575 lanes over 71 depth modules, 0 VUID-07931 on all six upload
  paths. Readbacks match bind::clamped_depth: -1 reads 0; 2 and 1000 read 1; NaN reads 1.0;
  negative denormals read 0; -0.0 is kept. The unclamped control m3-max-10192 fails all six
  paths.
- M3 m3-max-10318: lanes 584/584 at the final tree. Replay m3-max-10293: divergent 128, as at
  the base.
- gem10 m3-max-10312: clippy x3, rustdoc, the translator (golden hashes only, which development
  re-blesses), validation 342, lavapipe lanes 585, lavapipe replay and public-case qualification
  all pass. Its two conformance unit reds were fixed in 184d622fa5.
- Iris m3-max-10275 at 90d231de94: the depth module passes. The lane's 21 other reds are
  nvreds' and are tracked on development's Iris leg.
This commit is contained in:
Anees Iqbal committed 2026-11-08 18:16:25 -08:00
1 parent 733108b25d
commit 6cb37f2c86
2 files changed
+3 -3

No files matched your search

@@ -1 +1 @@
66248551d7c49ab9b6b9454cb427970df0197581676ae9efa720d5d834fca680
815c91bc1396af2af6499993d1f63b20d0a4f3f5ed534c0b7793b7a04a5cdbd7
+2 -2
View File
@@ -60,7 +60,7 @@ mod tests;
/// unchanged version, and its bless records the version. Independent of the crate's version and of
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
/// history.
pub const SEMANTICS_VERSION: u32 = 1995;
pub const SEMANTICS_VERSION: u32 = 1996;
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 493;
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
/// keeps no history.
pub const RUNTIME_VERSION: u32 = 1935;
pub const RUNTIME_VERSION: u32 = 1936;
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles