mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-20 23:51:53 -04:00
3a48f4bb40
- Emitting `OpCapability` and `OpExtension` from assembly is no longer allowed (tbh it never was because we silently ignored them). They now `fail` with a message pointing users at `-mcpu`. - `tools/gen_spirv_spec.zig` now also emits `Extension` and the `Capability.dependencies()`. Also To keep the feature set a reasonable size, the generator filters to an allowlist of `KHR` and `EXT` entries. We can decide which vendors to allow later if a use-case is found. - `tools/update_cpu_features.zig` now uses the generated `spec.zig` and emits a feature for every capability and extension, with the capability's `.deps` populated from `Capability.dependencies()`. - `Module.finalize`, `Module.entryPoints`, `Module.addCapability`, `Module.addExtension` and `sections.capabilities`/`sections.extensions` are deleted. - Linker now verifies that an `.spv` object declares the `Linkage` capability