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)
commit934abc427280adc4d0bba62adfe623a490353df9
tree2af32e8cc5e2efa62724c577f1318bb2317e0d4e
parent5fb6f6195407763567208536e6439f96cc87f43d
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