Files
metal2vulkan/crates/metal2vulkan-runtime/src
Anees Iqbal ec6f1a1109 RUNTIME 2313: DeviceRecovered's announced cost states the pooled ICB records RUNTIME 2311 loses; device-leg tests count lazy shadows and size depth heaps by the query
Three fixes from the device legs at 4aacef045b (Radeon 780M HawkPoint m3-max-30180) and pin 93's
checks at b89241fafa (merged m3-max-30182, lavapipe m3-max-30185).

1. Degradation::DeviceRecovered's cost string now says what docs/API.md's catalogue entry says
   since RUNTIME 2311 (dfda37628d). An indirect command buffer's records are lost at a recovery:
   - on a device that imports no host pointer;
   - where their import failed;
   - under the default DevicePolicy::indirect_records = IndirectRecordsPolicy::Untaxed, on a
     device whose check found that a held host-pointer import costs every submission (RADV, ANV
     on i915), where they lie in pooled memory.
   They are kept in the runtime's own pages everywhere else, and under
   IndirectRecordsPolicy::Carried, which exact_answers() selects. RUNTIME 2311 changed the entry
   but not the announced cost, so tests::degradation_catalogue::a_runtime_kind_s_entry_states_the_cost_it_announces
   failed on every venue.
2. The tests that check the form a texture takes as it is made (a shadow, or in place, exactly
   one) now count a texture whose shadow RUNTIME 2309 (e453efbf0a) leaves unmade until the first
   reach as a shadow. runtime_lane::shadow_forms counts shadowed_textures + shadows_left_unmade -
   shadows_made_at_use. It is used in no_copy_textures, pitched_surfaces, linear_alignments,
   in_place_textures, aliased_surfaces and device_copies; the runtime's
   texture_placement_device path() reads an unmade shadow as "shadow". Each texture still takes
   exactly one form.
3. store_out_device's two depth tests lay their no-copy heap over pages sized by
   Device::heap_texture_size_and_align, as a program sizes a heap. They had taken 64 KiB whatever
   the device answered, and failed on the 780M with OutOfMemory(Heap).

RUNTIME_VERSION moves because the device-recovered notice's announced text changes. Fixes 2 and
3 are test-only. No new Degradation kind, no WorkCounts field, no public item.

Verified (lane devlegs, msi lavapipe m3-max-30224 at 399ca0a0b3):
- clippy -D warnings plain and cpu_icd (runtime + validation, all targets, all features) exit 0;
- 129 of the 131 selected tests passed and none failed; the job was cancelled with 2 still
  running, at its RAM reservation. The passes include degradation_catalogue 5/5,
  pitched_surfaces::a_texture_that_only_reads_keeps_every_byte_of_its_pages_in_place (it fails
  at b89241fafa), no_copy_textures *_padded x5, linear_alignments, texture_placement_device x2,
  store_out_device 9/9 and degrade_notices.
The 780M rerun follows on the next pin's archive.
2026-11-14 13:53:00 -08:00
..
…
…
…
…
…
…