From 90ac2285f0900972d2a3e7a034b51ee4de374ffb Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Feb 2017 10:31:11 +1000 Subject: [PATCH] radv: pass FMASK alignment to application As was done for dcc and cmask. Cc: "17.0" Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 1581645b18d..461d6689c7d 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -510,6 +510,7 @@ radv_image_alloc_fmask(struct radv_device *device, image->fmask.offset = align64(image->size, image->fmask.alignment); image->size = image->fmask.offset + image->fmask.size; + image->alignment = MAX2(image->alignment, image->fmask.alignment); } static void -- 2.30.2