turnip: align layer_size
authorJonathan Marek <jonathan@marek.ca>
Thu, 26 Sep 2019 18:56:17 +0000 (14:56 -0400)
committerJonathan Marek <jonathan@marek.ca>
Thu, 26 Sep 2019 21:18:13 +0000 (17:18 -0400)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/freedreno/vulkan/tu_image.c

index 694f45802bcf44e987e35583edbdf39c7be7f15e..67f94095af0a5f722c0bcfda130bd5db357dde4b 100644 (file)
@@ -121,7 +121,7 @@ setup_slices(struct tu_image *image, const VkImageCreateInfo *pCreateInfo)
       depth = u_minify(depth, 1);
    }
 
-   image->layer_size = layer_size;
+   image->layer_size = align(layer_size, 4096);
 }
 
 VkResult