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)
commit7ac52e831af1959dbc871e9960d6d1dc05e0402e
tree43f9236c0c383a1a871b8f4229674fd100d25724
parent0b33b566f126a4ca9dd3585be794340d3366af7f
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