Files
reims-vgpu/guest/bundle/tests
Anees Iqbal fb8a9078c3 🐛 Make the GL generator's modules what one Metal compile writes
The Vulkan host's runtime reads AIR's metadata as a closed grammar. On the
RTX 5080 host it refused every GL pipeline (UnknownKey at gld.plugin_info).
Compiling the pipelines of gl_cases' 29 cases, dumped on the Intel 630,
with the runtime's compile API found what else the GL code generator
writes that `metal` does not.

The generator links its builtins, compiled as AIR 2.8 and Metal 4.0, into
any shader that uses them. Their lists' entries then follow the module's
own: more versions and languages, conflicting compile options, and
duplicate air.max_* flags. Each module, a kernel's included, now keeps:
- no gld.* lists;
- only its own air.version and air.language_version entry, the language
  Metal's at the AIR version;
- its own compile options, one of each kind, without
  native_double_disable;
- the first module flag of each name.

On the entry points, a vertex input loses the bare attribute name after
its location, and a flat fragment input loses its sampling key, as
`metal` writes [[flat]].

With these rules all 29 cases compile on the RTX 5080 and 780M profiles,
and draw right through the lowering on the Intel 630 (macOS 26.7.1).
2026-11-07 06:57:51 -08:00
..