From: Bas Nieuwenhuizen Date: Fri, 17 Aug 2018 12:43:01 +0000 (+0200) Subject: turnip: Initialize memory type in requirements. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a01edd9c86e54d734267c55b6ce56c23b0fc7082;p=mesa.git turnip: Initialize memory type in requirements. --- 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; }