From: Bas Nieuwenhuizen Date: Mon, 6 Feb 2017 23:45:11 +0000 (+0100) Subject: radv: Pass DCC alignment to application. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47ca0f537dfbc03f0eb0cb12fdee06dbe664fbc7;p=mesa.git radv: Pass DCC alignment to application. Signed-off-by: Bas Nieuwenhuizen Cc: "17.0" Reviewed-by: Dave Airlie Reviewed-by: Andres Rodriguez --- 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