summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-02-07 00:45:11 +0100
committerBas Nieuwenhuizen <[email protected]>2017-02-07 01:19:22 +0100
commit47ca0f537dfbc03f0eb0cb12fdee06dbe664fbc7 (patch)
treee04aaa6b86e010938366b517988fc78bd216a911 /src/amd/vulkan/radv_image.c
parenteb01b20cc41e9501062eb25034069e484f8b1899 (diff)
radv: Pass DCC alignment to application.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Cc: "17.0" <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Andres Rodriguez <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r--src/amd/vulkan/radv_image.c1
1 files changed, 1 insertions, 0 deletions
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