layers: Fix miscounting of descriptors for multiple stages
authorChris Forbes <chrisforbes@google.com>
Fri, 23 Feb 2018 17:11:06 +0000 (09:11 -0800)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 24 Feb 2018 05:50:51 +0000 (21:50 -0800)
commit31569c8d0e777308c220335ed0429ee4dd00eefa
treeb6edd5fce460f13b963c4e10779a5394233e1377
parent22cc3e35a0fc389da09d02610aea6a0b8957e1c4
layers: Fix miscounting of descriptors for multiple stages

Descriptors are not intended to count multiple times against the
maxDescriptorSet* limits if they are accessible from multiple stages.

Required adjusting various subtests in CreatePipelineLayout*.

Also fixed some related issues in those tests:
- Input attachments are ONLY accessible to the fragment stage.
- Various assumptions about divisibility of the maxDescriptorSet* limits

There are still many robustness issues in these tests -- it appears we
don't hit them with real implementations, but still wrong.
layers/core_validation.cpp
tests/layer_validation_tests.cpp