Module: Mesa
Branch: staging/19.1
Commit: 1527d02acb315ebf6359b813c7d6f644a2ce501c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1527d02acb315ebf6359b813c7d6f644a2ce501c

Author: Bas Nieuwenhuizen <[email protected]>
Date:   Wed Jul 17 02:58:59 2019 +0200

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: <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
(cherry picked from commit f1a89673448227dc22651b0b2d9fc05cbf5d928e)

---

 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 ec4fc4a6d4b..0606d49392f 100644
--- a/src/amd/vulkan/radv_meta.c
+++ b/src/amd/vulkan/radv_meta.c
@@ -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;
        }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to