layers: CmdClearAttachments colorAttachment is index into subpass
authorChris Forbes <chrisforbes@google.com>
Thu, 8 Sep 2016 03:25:24 +0000 (15:25 +1200)
committerChris Forbes <chrisforbes@google.com>
Fri, 9 Sep 2016 02:55:31 +0000 (14:55 +1200)
commit1710af939cd452f3c02e93f598f20e5e12eb6c3b
treea835780bc9319f9dabbdbabfd5e893247c510c5c
parent7777d184abffdbfe00a0e7030fa4de0ef96c1ac6
layers: CmdClearAttachments colorAttachment is index into subpass

We were previously treating this as being an index into the renderpass
attachment descriptions, but that's nonsense. It's also well-defined
what happens if an out-of-range index is provided, so downgrade to a
warning.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/core_validation.cpp
tests/layer_validation_tests.cpp