From 07bf480856536336186c3ec53f46e10b8754cfdb Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 8 Dec 2023 14:00:28 +0200 Subject: [PATCH] anv: fix protected memory allocations Using the wrong flag field... Signed-off-by: Lionel Landwerlin Fixes: 5f2c77a10a ("anv: handle protected memory allocation") Reviewed-by: Rohan Garg Tested-by: Mark Janes 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 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