From 8b9e5bc87ef528df943b1eacbdc2af54b06ecee0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 18 May 2017 16:27:17 -0700 Subject: layers: Cascade invalidation to primary command buffer(s) --- layers/core_validation.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'layers/core_validation.cpp') 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_setstate = 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); + } } } -- cgit v1.2.3