layers:Delay barrier validation for secondary CB
authorTobin Ehlis <tobine@google.com>
Thu, 27 Jul 2017 17:08:00 +0000 (11:08 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 28 Jul 2017 21:44:36 +0000 (15:44 -0600)
commitcb87452d5122186eaf86e9bcc43bd54f39259c1e
treea377627b16ce8a36157bf8d431cff4b2c5b002c7
parent60c136895a6b03cba0aa9e08d2a66a03191f1f83
layers:Delay barrier validation for secondary CB

When a secondary command buffer doesn't have a framebuffer, queue up
any renderPass barrier validation until submit time when we know we'll
have a framebuffer bound.

Added a separate vector of validation functions that are added to
secondary command buffer for this case and then executed at
CmdExecuteCommands() time.

Migrated the image validation that needs to be delayed to its own
function. This makes it easy to add to the delayed function array and
capture a copy of the image barrier that needs to be validated.
In CmdExecuteCommands() when validation runs inherit the activeFB
from the primaryCB into the secondary CB.
layers/core_validation.cpp
layers/core_validation_types.h