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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user