[Mesa-dev] [PATCH] radv: pass FMASK alignment to application

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Feb 7 00:38:23 UTC 2017


Yep,

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Tue, Feb 7, 2017, at 01:32, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> As was done for dcc and cmask.
> 
> Cc: "17.0" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  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 1581645..461d668 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
> -- 
> 2.9.3
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list