Files
metal2vulkan/docs
Anees Iqbal 71f93243d9 Validation: an L4 kernel row is made through the runtime, its pipeline state and one encoded dispatch
corpus-pipeline asked the driver for a kernel row's compute pipeline at
the region the binder planned for one representative dispatch
(acceptance::dispatch), and tallied the binder's answer (BIND_REFUSED,
BIND_ERROR). That is not the pipeline a guest's kernel gets. A kernel row
is now made as a guest's kernel is made (platform::runtime_acceptance):
- the row's AIR becomes a runtime library, and its function is
  specialized with the row's function-constant values;
- one ComputePipelineState is made on the sweep's device, restricted to
  --profiles-layer's profile where one is given;
- one dispatch of one threadgroup of the state's thread execution width
  (or its maxTotalThreadsPerThreadgroup where that is fewer) is encoded
  into a command buffer that is dropped uncommitted, so the runtime picks
  the module that threadgroup runs on, asks the driver for its pipeline,
  and nothing executes.

The verdicts:
- The creation time is the runtime's own count of it
  (pipeline_creation_nanos).
- A message from the validation layer is INVALID_USAGE.
- A Vulkan error is REFUSED.
- The runtime's typed refusal (the translator's, a known gap, a limit) is
  RUNTIME_REFUSED, counted.
- A kernel the runtime runs as Metal's without effects, and makes no
  pipeline for, is NO_EFFECT, counted.

The row still compiles in its compile worker first, for its words, its
outcome, --compile-only and --keep-modules. The make runs in the sweep's
process, held to the per-attempt ceilings (runtime::within_ceilings).

Removed:
- acceptance::dispatch (plan_compute_row, ComputeCreation, NoCreation,
  BinderAnswer);
- RowCompile::Binder and UnmodelledKind::Dispatch;
- the tally's bind_refused and bind_errors, and the detail's
  imageblock=WxH;
- the own context's compute arm of create_acceptance_pipeline, which now
  takes a render pipeline, with its region test.
The summary line's bind_refused= and bind_errors= become
runtime_refused= and no_effect=.

What is lost: L4 kernel acceptance on Mesa's drm-shim drivers (RADV, ANV
and NVK), which stood for hardware we do not own. The runtime does not
open those devices, so the rung runs on lavapipe and the real cards
only. NVK is lost entirely: the shim was its only venue, and it never
ran here.

Committed rows removed: none. No L4 row is committed. Counted by
environment over corpus/observations/vulkan and observations/refusals at
bcc88a43cf, there are 55 rows in 6 environments (the 780M, Iris Xe,
RTX 5080 Laptop twice, lavapipe twice), and none is from a drm-shim
environment.
2026-11-22 06:05:19 -08:00
..