aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-10-12 13:18:20 -0600
committerTobin Ehlis <tobine@google.com>2016-10-13 19:13:33 -0600
commit234467ac23b74b15bd829220844843d74deeb783 (patch)
treedbdef2c2b8c4782d307692c4d9b35d02ddb62cd4 /layers/core_validation.cpp
parentc417b29fc639790b82eb64b7af2e7ae93cedd144 (diff)
downloadusermoji-234467ac23b74b15bd829220844843d74deeb783.tar.xz
layers:Fix framebuffer cmd buffer binding
Wasn't correctly establishing binding between framebuffer object and cmd buffer object that it's used in. Updated code to use standard addCommandBufferBinding() function.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index fc1614d0..71e7406b 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -7045,7 +7045,9 @@ AllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pCrea
// Add bindings between the given cmd buffer & framebuffer and the framebuffer's children
static void AddFramebufferBinding(layer_data *dev_data, GLOBAL_CB_NODE *cb_state, FRAMEBUFFER_STATE *fb_state) {
- fb_state->cb_bindings.insert(cb_state);
+ addCommandBufferBinding(&fb_state->cb_bindings,
+ {reinterpret_cast<uint64_t &>(fb_state->framebuffer), VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT},
+ cb_state);
for (auto attachment : fb_state->attachments) {
auto view_state = attachment.view_state;
if (view_state) {