From 47ca0f537dfbc03f0eb0cb12fdee06dbe664fbc7 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 7 Feb 2017 00:45:11 +0100 Subject: [PATCH] radv: Pass DCC alignment to application. Signed-off-by: Bas Nieuwenhuizen Cc: "17.0" Reviewed-by: Dave Airlie Reviewed-by: Andres Rodriguez --- 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 202f460aafe..1581645b18d 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -582,6 +582,7 @@ radv_image_alloc_dcc(struct radv_device *device, /* + 8 for storing the clear values */ image->clear_value_offset = image->dcc_offset + image->surface.dcc_size; image->size = image->dcc_offset + image->surface.dcc_size + 8; + image->alignment = MAX2(image->alignment, image->surface.dcc_alignment); } static unsigned -- 2.30.2