[Mesa-dev] [PATCH 1/2] radv: Pass DCC alignment to application.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Feb 6 23:47:37 UTC 2017
Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
Cc: "17.0" <mesa-stable at lists.freedesktop.org>
---
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.11.0
More information about the mesa-dev
mailing list