turnip: Make tu_android.c compile again
[mesa.git] / 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,
-                           .allocationSize = image->layout.size,
+                           .allocationSize = image->total_size,
                            .memoryTypeIndex = 0,
                         },
                         alloc, &memory_h);