[Mesa-dev] [PATCH] radv: fix color decompressions for FMASK/CMASK

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Jun 18 10:05:12 UTC 2019


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

On Tue, Jun 18, 2019 at 11:58 AM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> Only skip levels without DCC when it's a DCC decompression.
> Whoops.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_meta_fast_clear.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
> index 12fea8292c0..4398cb7ca59 100644
> --- a/src/amd/vulkan/radv_meta_fast_clear.c
> +++ b/src/amd/vulkan/radv_meta_fast_clear.c
> @@ -673,7 +673,8 @@ radv_process_color_image(struct radv_cmd_buffer *cmd_buffer,
>                 uint32_t width, height;
>
>                 /* Do not decompress levels without DCC. */
> -               if (!radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
> +               if (decompress_dcc &&
> +                   !radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
>                         continue;
>
>                 width = radv_minify(image->info.width,
> --
> 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