diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index e3e4173573d..18c232b74f4 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -4315,7 +4315,7 @@ VkResult anv_AllocateMemory( if (mem->vk.alloc_flags & VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT) alloc_flags |= ANV_BO_ALLOC_CLIENT_VISIBLE_ADDRESS; - if (mem->vk.alloc_flags & VK_MEMORY_PROPERTY_PROTECTED_BIT) + if (mem_type->propertyFlags & VK_MEMORY_PROPERTY_PROTECTED_BIT) alloc_flags |= ANV_BO_ALLOC_PROTECTED; /* For now, always allocated AUX-TT aligned memory, regardless of dedicated