diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-02-01 06:50:57 -0800 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-02-03 16:01:40 -0700 |
| commit | 2248c2b7202c6b7df7a236262c4808b27c1ddeaf (patch) | |
| tree | 80ff78fd198b66bdad504820ba8f6abb5c048f7d | |
| parent | 3eec9ae1d564a99b124bf2eef1c4ec85f539626c (diff) | |
| download | usermoji-2248c2b7202c6b7df7a236262c4808b27c1ddeaf.tar.xz | |
layers: GL96 validateCommandBufferState should return skipCall
When validation checks were rolled into separate validateCommandBufferState
function, forgot to return the skipCall value from that function.
| -rw-r--r-- | layers/draw_state.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 84728b6f..4fd491ce 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -3406,8 +3406,6 @@ static VkBool32 validateCommandBufferState(layer_data* dev_data, GLOBAL_CB_NODE* } else { // Flag error for using CB w/o vkEndCommandBuffer() called skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, (uint64_t)(pCB->commandBuffer), __LINE__, DRAWSTATE_NO_END_COMMAND_BUFFER, "DS", "You must call vkEndCommandBuffer() on CB %#" PRIxLEAST64 " before this call to vkQueueSubmit()!", (uint64_t)(pCB->commandBuffer)); - loader_platform_thread_unlock_mutex(&globalLock); - return VK_ERROR_VALIDATION_FAILED_EXT; } } // If USAGE_SIMULTANEOUS_USE_BIT not set then CB cannot already be executing on device @@ -3417,6 +3415,7 @@ static VkBool32 validateCommandBufferState(layer_data* dev_data, GLOBAL_CB_NODE* "Attempt to simultaneously execute CB %#" PRIxLEAST64 " w/o VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT set!", (uint64_t)(pCB->commandBuffer)); } } + return skipCall; } VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence) |
