layers: Fix core_validation issues GH103 and GH240
authorMark Young <marky@lunarg.com>
Wed, 4 May 2016 20:38:51 +0000 (14:38 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 5 May 2016 22:13:26 +0000 (16:13 -0600)
commiteca2d52a6bfa3f9d63a86ca9fd30abc0adf775b7
treefb1a2a0d5c70160e8941dbda02ae44307c01bb63
parentf13bee0887f3c3d1d597c82869864be3be836737
layers: Fix core_validation issues GH103 and GH240

Perform pipeline sample and attachment count validation at draw
time instead of vkCmdNextSubpass() time.  Also validate that
an active renderpass exists.

Change-Id: I912947287eef29d532519220750c3a93a3554565
layers/core_validation.cpp
tests/layer_validation_tests.cpp