aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2016-11-21 15:15:52 -0700
committerTobin Ehlis <tobine@google.com>2016-11-22 13:20:46 -0700
commit0d0c19cb4900113ea83929e5e19a841f732a37fe (patch)
treec70ff693b1b142aa372ec6c8c7b18ed006d76aba /layers
parent6600bf55782351284e2108a04438bc878e28bc5d (diff)
downloadusermoji-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.
Diffstat (limited to 'layers')
-rw-r--r--layers/core_validation.cpp5
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);