summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Briano <ivan.briano@intel.com>2023-05-15 15:10:39 -0700
committerMarge Bot <emma+marge@anholt.net>2023-05-16 02:01:30 +0000
commita15bffe2b84a02b2bfcd0af6e3dfb2de78b54a80 (patch)
tree5490a78dbba728ba40ac55ff45b16832361e5687
parent47d9eaa0f1b9bf4215e15bcf446a35a1bd4c0215 (diff)
downloadmesa-a15bffe2b84a02b2bfcd0af6e3dfb2de78b54a80.tar.gz
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 <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23039>
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index ad95e5932a1..1b1dce0c55c 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,