Skip to content

Commit 334f2fa

Browse files
committed
host heap
1 parent 76bd8f4 commit 334f2fa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

deps/rpp

rvk/device.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,14 +517,16 @@ Device::Device(Arc<Physical_Device, Alloc> P, VkSurfaceKHR surface, bool ray_tra
517517

518518
if(auto idx = physical_device->heap_index(RPP_UINT32_MAX,
519519
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
520-
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT)) {
520+
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
521+
VK_MEMORY_PROPERTY_HOST_CACHED_BIT)) {
521522
host_memory_index = *idx;
522523
} else {
523524
die("[rvk] No host visible heap found.");
524525
}
525526

526-
info("[rvk] Found device and host heaps (%mb, %mb).",
527-
heap_size(Heap::device) / Math::MB(1), heap_size(Heap::host) / Math::MB(1));
527+
info("[rvk] Found device and host heaps (%: %mb, %: %mb).", device_memory_index,
528+
heap_size(Heap::device) / Math::MB(1), host_memory_index,
529+
heap_size(Heap::host) / Math::MB(1));
528530
}
529531

530532
volkLoadDevice(device);

0 commit comments

Comments
 (0)