layers:Add secondary CB warning
authorTobin Ehlis <tobine@google.com>
Tue, 28 Nov 2017 22:02:29 +0000 (15:02 -0700)
committerTobin Ehlis <tobine@google.com>
Fri, 1 Dec 2017 22:04:14 +0000 (15:04 -0700)
commit1c667d91ac70785c9056f873057bfa3a7226aa6b
treec0719b4a8a46216ba4d99ee8856f312908c0de27
parentd9da0a31fcaed22bf07448e7cafee17024994bf1
layers:Add secondary CB warning

Fixes #2237

If VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT is not set by a
secondary command buffer, then any renderPass specified in the
inheritance info will be ignored. Adding a warning if a non-NULL
renderPass is included in the inheritance info but the
VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT is not set. This is
likely an oversight by the user and the current validation error that
this case leads to (no active renderPass) doesn't directly point to the
root cause.
layers/core_validation.cpp