layers:Check secondary command buffer renderArea
authorTobin Ehlis <tobine@google.com>
Mon, 12 Mar 2018 17:26:39 +0000 (11:26 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 16 Mar 2018 14:24:50 +0000 (08:24 -0600)
commit185f5e0f025c5e2c0905f5c180f6d429bda71018
treece67c613f5283913b0b95dddfe4f68aeec4f3730
parent0da7e842f159ec6bef628e9289a41b91cfe9158c
layers:Check secondary command buffer renderArea

Fixes #2480
Fixes #1501

Add delayed function call to verify secondary command buffer renderArea
against vkCmdClearAttachments() rects at vkCmdExecuteCommands() time.

Updated the lambda function container for delayed secondary command
buffer checks to include a reference to the primary command buffer.
Add lambda call at vkCmdClearAttachments() for secondary command buffer
and pass in primary command buffer reference so that area restriction
can be appropriately checked at vkCmdExecuteCommands() time when
renderArea of renderPass is known.
layers/buffer_validation.cpp
layers/core_validation.cpp
layers/core_validation_types.h