[Mesa-dev] [PATCH 3/5] radv: initialize the aspect mask when decompressing resolve source images

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Mon Jun 10 22:44:36 UTC 2019


r-b

On Mon, Jun 10, 2019 at 5:42 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_meta_resolve.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c
> index 817182e17d9..0a7affb2f11 100644
> --- a/src/amd/vulkan/radv_meta_resolve.c
> +++ b/src/amd/vulkan/radv_meta_resolve.c
> @@ -719,6 +719,7 @@ radv_decompress_resolve_subpass_src(struct radv_cmd_buffer *cmd_buffer)
>                         fb->attachments[src_att.attachment].attachment->image;
>
>                 VkImageResolve region = {};
> +               region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
>                 region.srcSubresource.baseArrayLayer = 0;
>                 region.srcSubresource.mipLevel = 0;
>                 region.srcSubresource.layerCount = src_image->info.array_size;
> --
> 2.22.0
>
> _______________________________________________
> 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