From 27b6f7413cf64cec0c2a2a8af5a1dc487019de51 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 (cherry picked from commit eb01b20cc41e9501062eb25034069e484f8b1899) --- src/amd/vulkan/radv_image.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index f75f0088495..31b44b0ccd6 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