aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index c36c9e33..32905c3b 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5629,6 +5629,11 @@ void invalidateCommandBuffers(const layer_data *dev_data, std::unordered_set<GLO
}
cb_node->state = CB_INVALID;
cb_node->broken_bindings.push_back(obj);
+
+ // if secondary, then propagate the invalidation to the primaries that will call us.
+ if (cb_node->createInfo.level == VK_COMMAND_BUFFER_LEVEL_SECONDARY) {
+ invalidateCommandBuffers(dev_data, cb_node->linkedCommandBuffers, obj);
+ }
}
}