layers: MR178, Various fixes to inFlightCmdBuffers tracking in draw_state
authorTobin Ehlis <tobine@google.com>
Mon, 25 Jan 2016 23:24:34 +0000 (15:24 -0800)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 29 Jan 2016 17:11:01 +0000 (10:11 -0700)
commit5c9cb2533c71824c1b01868ed2422b74db0971f8
treefc9ee255f5f1d708aca7ee4f16a44f1086c52220
parent755a849a60558fb3957640bc191447dc7442fa93
layers: MR178, Various fixes to inFlightCmdBuffers tracking in draw_state

For clarity change the name of device-level set to "globalInFlightCmdBuffers".
Correctly handle validation errors and inFlightCmdBuffer clean-up when waiting for device idle.
No need to do another queue node look-up when inserting inFlightCmdBuffers at
trackCommandBuffers time, just use data from earlier look-up.
Correctly set queue when creating QUEUE_NODE.
Add locking around resetCB.
Refactor large set of checks at vkQueueSubmit time into validateCommandBufferState() function.

Conflicts:
layers/draw_state.cpp
layers/draw_state.cpp