From 68a91242dc551949817bc1de2d412840c9c7c78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 16 Apr 2024 08:03:24 -0700 Subject: [PATCH] anv: Remove protected memory types from default_buffer_mem_types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this application could allocate protected memory buffers and use it in non-protected queues. Fixes: c6a91f16952c ("anv: add new heap/pool for descriptor buffers") Reviewed-by: Lionel Landwerlin Signed-off-by: José Roberto de Souza Part-of: --- src/intel/vulkan/anv_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0be9deb047a..b5b9a5f9af4 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1959,6 +1959,7 @@ anv_physical_device_init_heaps(struct anv_physical_device *device, int fd) if (device->memory.types[i].propertyFlags & VK_MEMORY_PROPERTY_PROTECTED_BIT) { device->memory.protected_mem_types |= BITFIELD_BIT(i); + device->memory.default_buffer_mem_types &= (~BITFIELD_BIT(i)); continue; }