From 297fda6cf13c5f1672f235c65d8b437a1c64f882 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Thu, 23 Feb 2023 15:54:15 +0100 Subject: [PATCH] zink: fix build with -Dvulkan-beta=true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a build error with -Dvulkan-beta=true: ../src/gallium/drivers/zink/zink_screen.c: In function ‘zink_internal_create_screen’: ../src/gallium/drivers/zink/zink_screen.c:2764:20: error: ‘struct zink_device_info’ has no member named ‘have_KHR_portability_subset’ 2764 | if (screen->info.have_KHR_portability_subset) { | ^ ../src/gallium/drivers/zink/zink_screen.c:2765:60: error: ‘struct zink_device_info’ has no member named ‘portability_subset_feats’ 2765 | screen->have_triangle_fans = (VK_TRUE == screen->info.portability_subset_feats.triangleFans); | ^ Fixes: e02cdb397e62 ("zink: prefer vulkan_core.h over vulkan.h") Signed-off-by: Philipp Zabel Part-of: --- src/gallium/drivers/zink/zink_device_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/zink/zink_device_info.py b/src/gallium/drivers/zink/zink_device_info.py index 1c2b8287a8b..17009b206f3 100644 --- a/src/gallium/drivers/zink/zink_device_info.py +++ b/src/gallium/drivers/zink/zink_device_info.py @@ -349,6 +349,10 @@ header_code = """ #include +#ifdef VK_ENABLE_BETA_EXTENSIONS +#include +#endif + #ifdef _WIN32 #include #include