summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-02-07 00:24:16 +0100
committerBas Nieuwenhuizen <[email protected]>2017-02-07 01:18:53 +0100
commiteb01b20cc41e9501062eb25034069e484f8b1899 (patch)
treeff67ed447e75a32df7988cc37d1c5bd6eeac18df /src
parenta864ef7f4824a8319b74d4cf1c82e2dd25672ff1 (diff)
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 <[email protected]> Cc: <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-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 99d17376cf6..202f460aafe 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