radv: always restore NULL descriptor sets for meta operations

A valid but NULL descriptor set indicates a descriptor buffer.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19808>
This commit is contained in:
Samuel Pitoiset 2022-09-21 15:20:09 +02:00
parent a59be04ea5
commit e3fae40e96
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ radv_meta_save(struct radv_meta_saved_state *state, struct radv_cmd_buffer *cmd_
if (state->flags & RADV_META_SAVE_DESCRIPTORS) {
state->old_descriptor_set0 = descriptors_state->sets[0];
if (!(descriptors_state->valid & 1) || !state->old_descriptor_set0)
if (!(descriptors_state->valid & 1))
state->flags &= ~RADV_META_SAVE_DESCRIPTORS;
}