Files
metal2vulkan/docs
Anees Iqbal 8db6d705da Vertex quads ask nothing of subgroupQuadOperationsInAllStages: their modules hold no quad instruction
A vertex function's quad broadcasts and shuffle-xors lower to subgroup shuffles on every device:
quad instructions are emitted only in kernels (lower/simd/mod.rs, GroupPlan::quad_instructions),
and Vulkan exempts the compute and fragment stages from subgroupQuadOperationsInAllStages. So no
module this translator emits needs that property. The tier still refused a vertex function with
quad operations on a device without it (QuadOperations). That refusal was false: the function runs
there as it runs on any other device.

What changed:
- SubgroupModel::quad_all_stages is deleted, with the tier's refusal and quad_instructions' vertex
  clause.
- The requirement derived from a module (spirv/requirements) adds SubgroupQuadOperationsInAllStages
  for a quad instruction in every execution model except Fragment and GLCompute. Before, it was
  added for Vertex alone, so a TessellationEvaluation, task or mesh module that held a quad
  instruction would have missed it. No emitter writes one today; the derivation follows Vulkan's
  rule for any module.
- The description's quad_operations_in_all_stages and VkProperty::SubgroupQuadOperationsInAllStages
  stay. Enabled caps and that requirement read them.

Consumer check: `git -C reims-vgpu grep -n -w quad_all_stages development -- '*.rs'` has 0 hits. The
removed field is the only public item that goes; api_signatures is blessed and loses that one
record. docs/REFUSALS.md is regenerated: the QuadOperations row no longer names the property, and
it has one site.

Test: tests::engine_simd::vertex_quads_need_no_quad_operations_in_all_stages. It compiles
gsm2_vertex_quad_permutes' three vertex functions on the Iris Xe (RPL-P) description with the
property cleared, and each is a valid module that holds no quad instruction or capability. Without
the change, each is refused with QuadOperations. No committed profile has vertex subgroups without
the property, so the tier table is unchanged. The vertex quad cases on the measured cards read as
before: every one of them lists the property.

SEMANTICS: this is a refusal turned into a translation on such a profile. It shares the bump to
2272 with PrecisionNote::VertexSimdgroupGrouping on this branch, since the two land together.
2026-11-22 00:57:03 -08:00
..