layers: Fix issue when sub-passes have diff attachment count.
authorMark Young <marky@lunarg.com>
Thu, 24 Mar 2016 16:14:35 +0000 (10:14 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 25 Mar 2016 18:13:35 +0000 (12:13 -0600)
commit06e963555b0df747c98c43816c16647349d21001
tree14cc2feb91d620f339db4b486170349670909b93
parenta8615162dc9650e595c6a8b95a84395bad471d80
layers: Fix issue when sub-passes have diff attachment count.

In core_validation, if the attachment count between a primary
and secondary sub-pass was different, then it should treat
the shorter one as UNUSED.  So, if the longer one has the
attachment flags set to UNUSED, it shouldn't be an error.

Change-Id: I3647403551962ef522e7e2ba7ab10a5cb7466c52
layers/core_validation.cpp