hk: Enable caching on memory marked with HOST_CACHED_BIT

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37655>
This commit is contained in:
TellowKrinkle
2025-09-28 19:50:25 +02:00
committed by Marge Bot
parent 2b70575b9d
commit 05b927ac7e
+2
View File
@@ -211,6 +211,8 @@ hk_AllocateMemory(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo,
enum agx_bo_flags flags = 0;
if (handle_types)
flags |= AGX_BO_SHAREABLE;
if (type->propertyFlags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT)
flags |= AGX_BO_WRITEBACK;
mem->bo = agx_bo_create(&dev->dev, aligned_size, 0, flags, "App memory");
if (!mem->bo) {