hk: Add non-cached memory type

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37655>
This commit is contained in:
TellowKrinkle
2025-09-28 19:51:20 +02:00
committed by Marge Bot
parent 05b927ac7e
commit e14adc5cb2

View File

@@ -1261,6 +1261,13 @@ hk_create_drm_physical_device(struct vk_instance *_instance,
.heapIndex = sysmem_heap_idx,
};
pdev->mem_types[pdev->mem_type_count++] = (VkMemoryType){
.propertyFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
.heapIndex = sysmem_heap_idx,
};
assert(pdev->mem_heap_count <= ARRAY_SIZE(pdev->mem_heaps));
assert(pdev->mem_type_count <= ARRAY_SIZE(pdev->mem_types));