From: Bas Nieuwenhuizen Date: Mon, 6 Feb 2017 23:24:16 +0000 (+0100) Subject: radv: Pass CMASK alignment to application. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb01b20cc41e9501062eb25034069e484f8b1899;p=mesa.git radv: Pass CMASK alignment to application. CMASK alignment can be greater than image data alignment, so pass it to the app so that it knows what alignment to backing memory should have. Signed-off-by: Bas Nieuwenhuizen Cc: Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 99d17376cf6..202f460aafe 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -571,6 +571,7 @@ radv_image_alloc_cmask(struct radv_device *device, /* + 8 for storing the clear values */ image->clear_value_offset = image->cmask.offset + image->cmask.size; image->size = image->cmask.offset + image->cmask.size + 8; + image->alignment = MAX2(image->alignment, image->cmask.alignment); } static void