[Mesa-stable] [Mesa-dev] [PATCH] radv: Only save the descriptor set if we have one.

Dave Airlie airlied at gmail.com
Wed Jul 17 04:59:45 UTC 2019


Reviewed-by: Dave Airlie <airlied at redhat.com>

On Wed, 17 Jul 2019 at 11:01, Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl> wrote:
>
> After reset, if valid does not contain the relevant bit the descriptor
> can be != NULL but still not be valid.
>
> CC: <mesa-stable at lists.freedesktop.org>
> ---
>  src/amd/vulkan/radv_meta.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c
> index 5e619c2f181..448a6168bd2 100644
> --- a/src/amd/vulkan/radv_meta.c
> +++ b/src/amd/vulkan/radv_meta.c
> @@ -86,7 +86,7 @@ radv_meta_save(struct radv_meta_saved_state *state,
>
>         if (state->flags & RADV_META_SAVE_DESCRIPTORS) {
>                 state->old_descriptor_set0 = descriptors_state->sets[0];
> -               if (!state->old_descriptor_set0)
> +               if (!(descriptors_state->valid & 1) || !state->old_descriptor_set0)
>                         state->flags &= ~RADV_META_SAVE_DESCRIPTORS;
>         }
>
> --
> 2.21.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list