radv: pass FMASK alignment to application
authorDave Airlie <airlied@redhat.com>
Tue, 7 Feb 2017 00:31:11 +0000 (10:31 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Feb 2017 00:42:01 +0000 (10:42 +1000)
As was done for dcc and cmask.

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c

index 1581645b18d1037e5a82361691f99ebe076080db..461d6689c7d28ac18a17bd723d7ef1d62fcee4e8 100644 (file)
@@ -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