mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 05:40:33 +01:00
nvk: GART os host-cache-coherent
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
8213eaa99f
commit
86d367e75b
1 changed files with 4 additions and 2 deletions
|
|
@ -231,13 +231,15 @@ nvk_physical_device_try_create(struct nvk_instance *instance,
|
|||
device->mem_heaps[1].size = ndev->gart_size;
|
||||
device->mem_heaps[1].flags = 0;
|
||||
device->mem_types[1].heapIndex = 1;
|
||||
device->mem_types[1].propertyFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
|
||||
device->mem_types[1].propertyFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
|
||||
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
|
||||
} else {
|
||||
device->mem_type_cnt = 1;
|
||||
device->mem_heap_cnt = 1;
|
||||
|
||||
device->mem_heaps[0].size = ndev->gart_size;
|
||||
device->mem_types[0].propertyFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
|
||||
device->mem_types[0].propertyFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
|
||||
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
|
||||
}
|
||||
|
||||
unsigned st_idx = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue