hk: Add non-cached memory type
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37655>
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user