diff options
author | Dave Airlie <[email protected]> | 2017-02-07 10:31:11 +1000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-02-10 11:06:59 +0000 |
commit | dc398d94f07879ddde0202353df7cfc96c1c17dd (patch) | |
tree | 5d84e08afa15a8aee7d6b7304606e3608a6f348f /src | |
parent | d42419445552c92913e9b54e9cd0649058ff2aea (diff) |
radv: pass FMASK alignment to application
As was done for dcc and cmask.
Cc: "17.0" <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
(cherry picked from commit 90ac2285f0900972d2a3e7a034b51ee4de374ffb)
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 2e65959e9ab..d30a68e56cf 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -510,6 +510,7 @@ radv_image_alloc_fmask(struct radv_device *device, image->fmask.offset = align64(image->size, image->fmask.alignment); image->size = image->fmask.offset + image->fmask.size; + image->alignment = MAX2(image->alignment, image->fmask.alignment); } static void |