Files
metal2vulkan/crates
Anees Iqbal d459b4f140 rt: the extension test expects the indirect commands' pair; the conformance ledger follows the ICB states
Fixes forward the two reds the quick check m3-max-62773 found at f3f661dd14 (msi, lavapipe).

1. tests::device::every_device_of_the_cfgs_kind_enables_the_consumers_extensions_it_offers
   expected the device's extensions without VK_EXT_device_generated_commands and
   VK_KHR_maintenance5. The runtime is right. Device creation enables the pair for itself where
   the device lists both and reports their features (floor::INDIRECT_COMMANDS, after the
   barycentric one; Capabilities::indirect_commands), and the indirect command buffers need
   them. So the test now expects the pair after the barycentric extension, where device creation
   took it (core.indirect is Some). Capabilities::extensions' doc now names the pair too.

2. The conformance replay on lavapipe found 46 drift lines in known-gaps-rt.tsv. The ICB rows
   expected a refusal at the state ("pipeline states for indirect command buffers are not
   built"). Render states for indirect command buffers are now made, so each case runs on to a
   later refusal. None of them passes. 19 stale rows are replaced by the 27 the replay gives,
   every venue alike ('*': each is decided before any device query):
   - compute pipeline states for indirect command buffers: Gap::IndirectCommandBuffers,
     ComputeCommands, refused on every device (blit copy, optimize and reset, the compute
     command rows, bind-count limit, pipeline-facts-compute-described);
   - the side's indirect_command_buffer call, which the side does not port yet (the render
     command rows drawn, executed, inherited-state and under-the-pass-state);
   - the render pipeline facts the side does not answer (device, label and the three tile
     getters) of the two-attachment and multisampled states, worded as their siblings';
   - the patch-draw case's indexed pipeline: the translator makes none (Tessellation,
     NotImplemented);
   - indirect-render-commands-vertex-stride: the translator refuses the stage_in attribute
     (invalid descriptor: VertexAttribute { attribute: 0 }). This is a bug of ours and the row
     says so. A state made for indirect command buffers lowers its vertex function pulling
     every attribute, but LinkInputs::render_variant does not set pull_every for it, so the link
     resolves the attribute as fixed function and refuses the mismatch. The fix belongs in the
     translator's link; it is not in this commit.
   The descriptor-properties row's reason no longer says rt has no counterpart of the call: rt
   has Device::new_indirect_command_buffer, and the side does not port it.

Verified: cargo fmt --all; the check job is in the lane's report.
2026-11-21 02:52:54 -08:00
..