old-runtime regression fix: a stage's reconvergence note only on from_queries' profile; the old runtime's extra kind goes

6e08f5aaef made every stage of implementation-defined reconvergence
record PrecisionNote::DeviceReconvergence on the shared translator
path. The old runtime (Device::new) then announced a second kind,
Degradation::DeviceReconvergence ("device-reconvergence"), for a
tangled stage on a device without maximal reconvergence. Before that
commit it announced ImplementationDefinedReconvergence alone, from the
stage's reconvergence field.

Route (a) of the planner's two: the note is a third profile fact.
- ProfileFacts gains reconvergence_note: ReconvergenceNote::Field for
  Device::new (ROWS), ReconvergenceNote::Noted for
  Device::from_queries (EVERY).
- pipeline::compile records the note only where the profile notes it.
- A Device::new stage again carries the field alone, its notes as
  before 6e08f5aaef.
- The fingerprint renders the facts only off ROWS, so no Device::new
  fingerprint moves.

The old runtime's Degradation::DeviceReconvergence kind is deleted: no
Device::new stage records the note. Its catalogue entry in API.md and
its API-table row go with it. from_precision_note maps the note, which
none of its stages hold, onto ImplementationDefinedReconvergence, as the
closed match requires. The note stays in the translator's vocabulary,
codec and validation allowance for metal2vulkan-rt, which forwards it
through ComputePipelineState::precision_notes.

Tests:
- engine_simd's reconvergence_follows_the_profile and
  uniform_control_flow_mode_without_maximal_reconvergence assert the
  field alone through Device::new and the note through
  Device::from_queries; the guaranteed stage records none.
- the_profiles_facts_follow_its_constructor covers the third fact.

SEMANTICS_VERSION 2155.
This commit is contained in:
Anees Iqbal committed 2026-11-17 10:57:34 -08:00
1 parent e0f567a8bc
commit aa8d6ac6f5
9 files changed
+69 -27

No files matched your search

-8
View File
@@ -5366,14 +5366,6 @@ bound.
reads them, and records none. An `air.convert` from `f8e4m3fn` or `f8e5m2` and a
simdgroup-matrix cell of those formats widen through the same type there and record none: their
formats are OCP's own, and Metal on Apple M3 does not compile them.
- `metal2vulkan-degrade-device-reconvergence` (precision). `PrecisionNote::DeviceReconvergence`: A
stage holds a simdgroup or quad operation, or a barrier whose lanes depend on reconvergence, on a
device without maximal reconvergence (`Reconvergence::ImplementationDefined`): after divergent
control flow the device decides which lanes run it together, where Metal's reconverge maximally,
so the operation may see other lanes active than Metal's. With
`shaderSubgroupUniformControlFlow` the lanes reconverge where control flow is uniform. Recorded
for any such instruction in the stage's entry; `metal2vulkan-runtime` also announces
`ImplementationDefinedReconvergence` there.
- `metal2vulkan-degrade-device-pack-conversion` (precision). `PrecisionNote::DevicePackConversion`:
Native device maths (a conversion): `air.pack` or `air.unpack` of a normalized format is the
device's: `GLSL.std.450`'s `Pack`/`Unpack` `Unorm4x8`, `Snorm4x8`, `Unorm2x16` and `Snorm2x16`,