From a15bffe2b84a02b2bfcd0af6e3dfb2de78b54a80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Iv=C3=A1n=20Briano?= Date: Mon, 15 May 2023 15:10:39 -0700 Subject: [PATCH] anv: enable the GPL feature based on whether the extension is supported Instead of checking if the very same bit we want to enable is already enabled, which obviously doesn't work. Fixes: fbc0e74bdac ("anv: enable graphics pipeline libraries by default") Acked-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index ad95e59..1b1dce0 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -590,7 +590,7 @@ get_features(const struct anv_physical_device *pdevice, /* VK_EXT_graphics_pipeline_library */ .graphicsPipelineLibrary = - pdevice->vk.supported_features.graphicsPipelineLibrary, + pdevice->vk.supported_extensions.EXT_graphics_pipeline_library, /* VK_KHR_fragment_shading_rate */ .pipelineFragmentShadingRate = true, -- 2.7.4