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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32206>
This commit is contained in:
Lina Versace 2024-11-18 19:30:52 -08:00 committed by Marge Bot
parent 4743695e91
commit 56116c4da5

View File

@ -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,