turnip: Make tu_android.c compile again
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 29 Jul 2020 07:53:29 +0000 (00:53 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 18:08:07 +0000 (18:08 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>

src/freedreno/vulkan/tu_android.c

index d82c8e9125d135acf95b0ab6f5b7ad73590acbe7..720ecd8f5f8a62a7ba831e5320b908ba587a4192 100644 (file)
@@ -164,7 +164,7 @@ tu_image_from_gralloc(VkDevice device_h,
                         &(VkMemoryAllocateInfo) {
                            .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
                            .pNext = &import_info,
                         &(VkMemoryAllocateInfo) {
                            .sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO,
                            .pNext = &import_info,
-                           .allocationSize = image->layout.size,
+                           .allocationSize = image->total_size,
                            .memoryTypeIndex = 0,
                         },
                         alloc, &memory_h);
                            .memoryTypeIndex = 0,
                         },
                         alloc, &memory_h);