mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
hk: Add non-cached memory type
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37655>
This commit is contained in:
parent
05b927ac7e
commit
e14adc5cb2
1 changed files with 7 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue