layers: Add validation check to enforce ONE_TIME_SUBMIT of cmd buffers
authorTobin Ehlis <tobin@lunarg.com>
Tue, 18 Aug 2015 13:10:58 +0000 (07:10 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Tue, 18 Aug 2015 15:37:46 +0000 (09:37 -0600)
commit418c2e8d72f3e052c292053352b1fbf5593ddc49
tree5f25a79b87f4d964b9fe00a8bcd21e0dec8902a5
parentd311fd0902c3638f2b81a310cd0e5e9a010b6e27
layers: Add validation check to enforce ONE_TIME_SUBMIT of cmd buffers

Track createInfo and beginInfo independently per cmdBuffer & check begin flags at QueueSubmit time to verify cmd buffer not submitted multiple times if VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT is set.

Add CmdBufferTwoSubmits test to verify this check.
layers/draw_state.cpp
layers/draw_state.h