From: Jonathan Marek Date: Thu, 26 Sep 2019 18:56:17 +0000 (-0400) Subject: turnip: align layer_size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02ca326a04762421f08b0591bbfec0ed818bb2e3;p=mesa.git turnip: align layer_size Signed-off-by: Jonathan Marek Reviewed-by: Kristian H. Kristensen Acked-by: Eric Anholt --- 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