From 02ca326a04762421f08b0591bbfec0ed818bb2e3 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 26 Sep 2019 14:56:17 -0400 Subject: [PATCH] turnip: align layer_size Signed-off-by: Jonathan Marek Reviewed-by: Kristian H. Kristensen Acked-by: Eric Anholt --- src/freedreno/vulkan/tu_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_image.c b/src/freedreno/vulkan/tu_image.c index 694f45802bc..67f94095af0 100644 --- a/src/freedreno/vulkan/tu_image.c +++ b/src/freedreno/vulkan/tu_image.c @@ -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 -- 2.30.2