From a01edd9c86e54d734267c55b6ce56c23b0fc7082 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 17 Aug 2018 14:43:01 +0200 Subject: [PATCH] turnip: Initialize memory type in requirements. --- src/freedreno/vulkan/tu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 54385fefd23..235aa44dbd7 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -1379,6 +1379,7 @@ tu_GetBufferMemoryRequirements(VkDevice _device, { TU_FROM_HANDLE(tu_buffer, buffer, _buffer); + pMemoryRequirements->memoryTypeBits = 1; pMemoryRequirements->alignment = 16; pMemoryRequirements->size = align64(buffer->size, pMemoryRequirements->alignment); @@ -1401,8 +1402,7 @@ tu_GetImageMemoryRequirements(VkDevice _device, { TU_FROM_HANDLE(tu_image, image, _image); - /* TODO: memory type */ - + pMemoryRequirements->memoryTypeBits = 1; pMemoryRequirements->size = image->size; pMemoryRequirements->alignment = image->alignment; } -- 2.30.2