diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-11-21 15:15:52 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-11-22 13:20:46 -0700 |
| commit | 0d0c19cb4900113ea83929e5e19a841f732a37fe (patch) | |
| tree | c70ff693b1b142aa372ec6c8c7b18ed006d76aba | |
| parent | 6600bf55782351284e2108a04438bc878e28bc5d (diff) | |
| download | usermoji-0d0c19cb4900113ea83929e5e19a841f732a37fe.tar.xz | |
layers:Use ptr to cmd buffer object in log_msg
This new error was incorrectly referencing the ptr to the cb_node,
which is internal validation state, instead of the cmd buffer object
that the node wraps.
| -rw-r--r-- | layers/core_validation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index a8a0a854..f57a403c 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6390,8 +6390,9 @@ void invalidateCommandBuffers(const layer_data *dev_data, std::unordered_set<GLO for (auto cb_node : cb_nodes) { if (cb_node->state == CB_RECORDING) { log_msg(dev_data->report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, - (uint64_t)(cb_node), __LINE__, DRAWSTATE_INVALID_COMMAND_BUFFER, "DS", - "Invalidating a command buffer that's currently being recorded: 0x%" PRIx64 ".", (uint64_t)(cb_node)); + (uint64_t)(cb_node->commandBuffer), __LINE__, DRAWSTATE_INVALID_COMMAND_BUFFER, "DS", + "Invalidating a command buffer that's currently being recorded: 0x%" PRIx64 ".", + (uint64_t)(cb_node->commandBuffer)); } cb_node->state = CB_INVALID; cb_node->broken_bindings.push_back(obj); |
