From 4026a07e741aa886eac1754a3f0ee94d3c944f90 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 10 Jun 2021 18:20:19 +0200 Subject: [PATCH] radv: fix aligning the image offset by using align64() This doesn't fix anything known. Found by inspection. Cc: 21.1 mesa-stable Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 189d428..e2c22a0 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1381,7 +1381,7 @@ radv_image_create_layout(struct radv_device *device, struct radv_image_create_in offset = mod_info->pPlaneLayouts[plane].offset; stride = mod_info->pPlaneLayouts[plane].rowPitch / image->planes[plane].surface.bpe; } else { - offset = align(image->size, 1 << image->planes[plane].surface.alignment_log2); + offset = align64(image->size, 1 << image->planes[plane].surface.alignment_log2); stride = 0; /* 0 means no override */ } -- 2.7.4