From 56116c4da565bd1c68168985f4636b7a141f86da Mon Sep 17 00:00:00 2001 From: Lina Versace Date: Mon, 18 Nov 2024 19:30:52 -0800 Subject: [PATCH] anv: Fix feature pipelineProtectedAccess We enable VK_EXT_pipeline_protected_access only if anv_physical_device::has_protected_contexts. Therefore we should do the same for vk_features::pipelineProtectedAccess. Fixes: 0b5408f ("anv: expose VK_EXT_pipeline_protected_access") Reviewed-by: Lionel Landwerlin Reviewed-by: Rohan Garg Part-of: --- src/intel/vulkan/anv_physical_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index d94a8e2ea51..9bb6c71652e 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -898,7 +898,7 @@ get_features(const struct anv_physical_device *pdevice, .dynamicRenderingLocalRead = true, /* VK_EXT_pipeline_protected_access */ - .pipelineProtectedAccess = true, + .pipelineProtectedAccess = pdevice->has_protected_contexts, /* VK_EXT_host_image_copy */ .hostImageCopy = true,