layers:Move gfx pipe check to create time
authorTobin Ehlis <tobine@google.com>
Wed, 1 Feb 2017 20:31:22 +0000 (13:31 -0700)
committerTobin Ehlis <tobine@google.com>
Wed, 1 Feb 2017 22:08:07 +0000 (15:08 -0700)
commit556692b8792a6a909262ddec39dc754086bec1c3
tree9d1f868f70ab1c15f2927f5ec168ae2cb11838f5
parentee9cd37d587568b3ed4f32b620350331f4320d1e
layers:Move gfx pipe check to create time

Fixes #1424

The check to verify that the attachmentCount for blend state of a
Graphics Pipeline matches the attachmentCount for the given subpass of
the creation renderPass was occurring at draw time but can and should
be done at Gfx Pipeline creation time.

This change moves the check to creation time and updates the database
and test appropriately.
layers/core_validation.cpp
layers/vk_validation_error_database.txt