aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-10-18 06:31:15 -0600
committerTobin Ehlis <tobine@google.com>2016-10-18 12:40:32 -0600
commit5129f881050c7009d958969351a94ffbad6fb751 (patch)
tree4180b562d734473549fd280e41f6c4fff13d1dcb /layers/core_validation.cpp
parentf00324d9aa4cbeb9e4673703a17184cc626593cf (diff)
downloadusermoji-5129f881050c7009d958969351a94ffbad6fb751.tar.xz
layers:Fix cmd buffer to buffer binding
Bind the buffer to the cmd buffer independent of the buffer memory. Previously in the null memory case we'd bind the cmd buffer to the buffer without binding the buffer to the cmd buffer. This fixes that imbalance.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 639c0b4b..498ffaff 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -637,9 +637,9 @@ void AddCommandBufferBindingBuffer(const layer_data *dev_data, GLOBAL_CB_NODE *c
pMemInfo->command_buffer_bindings.insert(cb_node->commandBuffer);
// Now update CBInfo's Mem reference list
cb_node->memObjs.insert(buff_node->binding.mem);
- cb_node->object_bindings.insert({reinterpret_cast<uint64_t &>(buff_node->buffer), VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT});
}
// Now update cb binding for buffer
+ cb_node->object_bindings.insert({reinterpret_cast<uint64_t &>(buff_node->buffer), VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT});
buff_node->cb_bindings.insert(cb_node);
}