upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_harness.cpp
diff options
context:
space:
mode:
authorAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 11:54:42 +0100
committerAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 11:54:42 +0100
commitfdf8eebf134db0a7bad31b7f9b4d431129b33d24 (patch)
tree243523103257245a3a9b939807ebcbf0ac99089f /runtime/test/vk_harness.cpp
parentd630dd7db82b4d0f7ba64fcbf0fbb2c871c366d1 (diff)
vk_harness: guard the shader-fma feature struct for Vulkan headers without VK_KHR_shader_fma
The Linux CI's Vulkan headers predate VK_KHR_shader_fma, where ShaderFma has no features member; the other tools chain it through link_after, which is already guarded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_harness.cpp')
-rw-r--r--runtime/test/vk_harness.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/test/vk_harness.cpp b/runtime/test/vk_harness.cpp
index 8ae3291be..107e595cc 100644
--- a/runtime/test/vk_harness.cpp
+++ b/runtime/test/vk_harness.cpp
@@ -201,7 +201,9 @@ int main(int argc, char** argv) {
201 void* chain = nullptr; 201 void* chain = nullptr;
202 if (fma.supported()) { 202 if (fma.supported()) {
203 enable.push_back(fma.extension()); 203 enable.push_back(fma.extension());
204#ifdef VK_KHR_SHADER_FMA_EXTENSION_NAME // older Vulkan headers have no VkPhysicalDeviceShaderFmaFeaturesKHR
204 fma.features.pNext = chain; chain = &fma.features; 205 fma.features.pNext = chain; chain = &fma.features;
206#endif
205 } 207 }
206 VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR bary{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR}; 208 VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR bary{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR};
207 VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT lock{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT}; 209 VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT lock{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT};