summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-08-17 14:43:01 +0200
committerChia-I Wu <[email protected]>2019-03-11 10:01:33 -0700
commita01edd9c86e54d734267c55b6ce56c23b0fc7082 (patch)
treeab2b00d2df650c68f1435dee840e0974df3af24e /src
parent7be2e1fc371979bd308d037cc8e45656b32b4bfd (diff)
turnip: Initialize memory type in requirements.
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/tu_device.c4
1 files 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;
}