layers: Fix CheckPreserved to allow input attachment
authorTony Barbour <tony@LunarG.com>
Fri, 10 Feb 2017 20:41:15 +0000 (13:41 -0700)
committerTony-LunarG <tony@lunarg.com>
Fri, 10 Feb 2017 22:23:36 +0000 (15:23 -0700)
commitf6f11f18351395e24b53043b766b4802f526e252
tree3516bd3ea97af02ce68c31591ef6e1118c84f366
parent555c8484bd88b77b080eab3d4d5777b69ec40e30
layers: Fix CheckPreserved to allow input attachment

Attachments that are used (input / color / depth attachment)
in a subpass are not allowed in the preserved list, so if they
are used as a color, depth  or input attachment they should
be consided preserved.  Color and depth attachments were accounted
for, this commit adds input attachment

Change-Id: Id87c3c1546092bc64b293bead1d997e0f61f7990
layers/core_validation.cpp