From c79f4c546e1bd99563056efda17542d2b47a1938 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Sat, 15 Sep 2018 18:51:30 +0200 Subject: [PATCH 2/2] Hack GTT properties. --- src/amd/vulkan/radv_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index f2736b78dd3..9f9481fa84a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -161,8 +161,8 @@ radv_physical_device_init_mem_types(struct radv_physical_device *device) if (gart_index >= 0) { device->mem_type_indices[type_count] = RADV_MEM_TYPE_GTT_WRITE_COMBINE; device->memory_properties.memoryTypes[type_count++] = (VkMemoryType) { - .propertyFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | - VK_MEMORY_PROPERTY_HOST_COHERENT_BIT | + .propertyFlags = /*VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | + VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |*/ (device->rad_info.has_dedicated_vram ? 0 : VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT), .heapIndex = gart_index, }; -- 2.19.0