From eb01b20cc41e9501062eb25034069e484f8b1899 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 7 Feb 2017 00:24:16 +0100 Subject: 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 --- src/amd/vulkan/radv_image.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/amd/vulkan') 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 -- cgit v1.2.3