layers:Fix CmdDispatch post-call function
authorTobin Ehlis <tobine@google.com>
Tue, 27 Dec 2016 14:32:56 +0000 (07:32 -0700)
committerTobin Ehlis <tobine@google.com>
Tue, 27 Dec 2016 14:32:56 +0000 (07:32 -0700)
Cut-and-paste bug was incorrectly calling CmdDraw post-call function
instead of CmdDispatch.

layers/core_validation.cpp

index c2ed9be..44ad72b 100644 (file)
@@ -8263,7 +8263,7 @@ VKAPI_ATTR void VKAPI_CALL CmdDispatch(VkCommandBuffer commandBuffer, uint32_t x
     if (!skip) {
         dev_data->dispatch_table.CmdDispatch(commandBuffer, x, y, z);
         lock.lock();
-        PostCallRecordCmdDraw(dev_data, cb_state, VK_PIPELINE_BIND_POINT_COMPUTE, &active_set_bindings_pairs, &active_bindings);
+        PostCallRecordCmdDispatch(dev_data, cb_state, VK_PIPELINE_BIND_POINT_COMPUTE, &active_set_bindings_pairs, &active_bindings);
         lock.unlock();
     }
 }