From: Dave Airlie Date: Tue, 7 Feb 2017 00:31:11 +0000 (+1000) Subject: radv: pass FMASK alignment to application X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90ac2285f0900972d2a3e7a034b51ee4de374ffb;p=mesa.git 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 --- 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