mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radv: Only save the descriptor set if we have one.
After reset, if valid does not contain the relevant bit the descriptor
can be != NULL but still not be valid.
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit f1a8967344)
This commit is contained in:
parent
d578b42e34
commit
1527d02acb
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue