Module: Mesa
Branch: master
Commit: e05e60b2301d3859597cc82b0caecf1a61fd94dd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e05e60b2301d3859597cc82b0caecf1a61fd94dd

Author: Kristian H. Kristensen <[email protected]>
Date:   Wed Jul 29 00:53:29 2020 -0700

turnip: Make tu_android.c compile again

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>

---

 src/freedreno/vulkan/tu_android.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_android.c 
b/src/freedreno/vulkan/tu_android.c
index d82c8e9125d..720ecd8f5f8 100644
--- a/src/freedreno/vulkan/tu_android.c
+++ b/src/freedreno/vulkan/tu_android.c
@@ -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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to