From 0d0c19cb4900113ea83929e5e19a841f732a37fe Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 21 Nov 2016 15:15:52 -0700 Subject: 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. --- layers/core_validation.cpp | 5 +++-- 1 file 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_setstate == 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); -- cgit v1.2.3