Files
metal2vulkan/tests
Anees Iqbal a72afbe1db Read the barycentric weights a fragment asks for
`[[barycentric_coord]]` gives a fragment the three weights of the covering
primitive's vertices. It had no lowering, so the parameter read a zero -- a
degenerate barycentric that names no vertex, in a module that validated and
reflected normally. Since the previous commit it FALLBACKs instead; now it
translates.

Vulkan spells the perspective-correct and screen-space forms as two builtins
rather than as a builtin plus a decoration, so the marker AIR states on the
argument picks `BaryCoordKHR` or `BaryCoordNoPerspKHR`. Both come from
`SPV_KHR_fragment_shader_barycentric`, which `module_cleanup` now requests from
the decoration alongside the capability -- through a `require_extension` helper
that replaces the three copies of the same idempotent push.

A function-constant-gated argument that is off by default is absent, and is
left zero-bound: materializing its builtin would make the module require the
extension for a value nothing reads, narrowing the devices that can create the
pipeline. A parameter that is not a float3 has no honest lowering and rejects.

Over 2880 corpus sources: 2 modules go from FALLBACK to a spirv-val-clean
translate, and no other module's SPIR-V changes by a byte.
2026-09-01 02:51:28 +03:00
..
2026-07-22 13:15:24 +03:00