From 9e0ea31f95af8b66f53a1cada5086eeba8a99b60 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 19:33:40 -0800 Subject: [PATCH] Translator: the enable-set facts class VK_KHR_shader_fma as described and never enabled Follows ac705cf061, after which the translator reads none of the extension's features (a float fma is the device's Fma on every device): recommended_enables named the extension and its shaderFmaFloat16/32 features as consumed, and no longer does. The vocabulary and its query stay. The consumer's checkout (reims-vgpu at bd9d6ae85a) calls no recommended_enables. --- crates/metal2vulkan/src/device/enables.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/device/enables.rs b/crates/metal2vulkan/src/device/enables.rs index 77719604f..2b8290051 100644 --- a/crates/metal2vulkan/src/device/enables.rs +++ b/crates/metal2vulkan/src/device/enables.rs @@ -347,7 +347,6 @@ fn facts(ext: VkExtension) -> ExtensionFacts { | E::KhrComputeShaderDerivatives | E::KhrWorkgroupMemoryExplicitLayout | E::KhrMaintenance8 - | E::KhrShaderFma | E::ExtDepthClipEnable | E::ExtDepthClampControl | E::ExtSampleLocations @@ -397,6 +396,9 @@ fn facts(ext: VkExtension) -> ExtensionFacts { // Described, never enabled: a depth comparison records `RestrictedDepthRange` on every // device (`lower::texture::depth_comparison`), and Vulkan clamps a fragment depth itself. E::ExtDepthRangeUnrestricted => fact(false, None, &[]), + // Described, never enabled: a float fma is the device's `Fma` on every device + // (`lower::arith::fma`), so the core reads none of its features. + E::KhrShaderFma => fact(false, None, &[]), E::KhrDynamicRendering => fact(false, Some(3), &[]), // Object and mesh functions. `VK_KHR_spirv_1_4` is core at the 1.2 floor. E::ExtMeshShader => fact(true, None, &[]),