Fix forward of 14dca89bf9: lint, a float depth stays on the executor's context, a format the device lacks is not_enabled

What: the compile gate m3-max-60907 at 14dca89bf9 failed clippy twice and Rustdoc twice:
- `usage = usage | ...` becomes `usage |= ...`;
- `dispatched` takes its dispatch and threadgroup size as one argument;
- the public docs of `runs_through_runtime` and `RuntimeKernel` named private items as links.

The family's public proof (m3-max-60908, 218 cases on lavapipe against committed Metal, before
and after) showed 17 rows failing through the runtime:
- 15 bind a Depth32Float texture, whose bytes the runtime takes no upload of
  (Gap::FloatDepthUpload). The executor cannot fill one, and a guest fills one by drawing.
  `runtime_texture` now keeps such a texture on the executor's own context, where these rows
  ran before.
- 2 bind R8Unorm_sRGB, which lavapipe's format query lacks. The runtime refuses it as
  Gap::TextureFormat; before, the executor's own context recorded not_supported{not_enabled}.
  `runtime_error` now maps that gap to NotSupported::NotEnabled with the gap's text. Every
  other runtime gap still fails the row.

ENGINE_EXECUTOR_ABI is now vulkan-engine-v188. docs/VALIDATION.md's "Through the runtime" now
names textures and samplers, what keeps a case off the runtime, and the not_enabled mapping.

Tests: the routing test adds a Depth32Float texture, which is not routed. A new unit test
covers runtime_error's two mappings.

Verified: in the lane's report (compile gate and the focused rerun of the 17 rows).
This commit is contained in:
Anees Iqbal committed 2026-11-20 17:33:49 -08:00
1 parent 0054bddacb
commit 47d782f3a5
4 files changed
+67 -20

No files matched your search

+9 -4
View File
@@ -456,10 +456,15 @@ cargo run -p metal2vulkan-validation --release --bin corpus-moltenvk -- \
`robustness-off` leg none, so both encodings of a buffer-slot access's bounds run (the
device's robustness and the shader's check).
- **Through the runtime.** On Linux, in the stated leg and without a profile restriction, a kernel
case of buffers (device buffer arrays included), threadgroup memory, function constants and
linked functions, dispatched by threads or threadgroups and observing a buffer, runs through
`metal2vulkan-runtime`'s public API instead, as a consumer runs it (`engine::runs_through_runtime`
decides it from the case's structure). Its device worker enables the validation layer through the
case of buffers (device buffer arrays included), bound textures and samplers, threadgroup
memory, function constants and linked functions, dispatched by threads or threadgroups and
observing a buffer, a bound texture or nothing, runs through `metal2vulkan-runtime`'s public API
instead, as a consumer runs it (`engine::runs_through_runtime` decides it from the case's
structure). Each texture is made as the Metal oracle makes it, Shared and written with
`replace_region`, at an index the run grants; a multisampled, sparse, texture-buffer or
cube-array texture, or a 32-bit float depth (which the runtime takes no upload of), keeps the
case on the executor's own context. A pixel format the runtime makes no image of on the device
records `not_enabled`, as the executor's own context records a format its query lacks. Its device worker enables the validation layer through the
loader's and the layer's variables, and any message the layer logs fails the row. The pipeline
state's make is held to 500 MiB of peak live allocations and 20 s. Its row records the state's
precision notes and the runtime's fingerprint, and no SPIR-V, status, subgroup shape,