layers: Only call ValidateLayouts if no prior error
authorChris Forbes <chrisforbes@google.com>
Wed, 16 Nov 2016 01:30:05 +0000 (14:30 +1300)
committerChris Forbes <chrisforbes@google.com>
Sun, 20 Nov 2016 22:07:36 +0000 (11:07 +1300)
commit07d903984055ef1ccc7797a9dcdb66c98c3b3f81
treeb833a2131669a57c7ce9ff0498ce064f4b7585eb
parente2cbc0a8690a29590488b76a3f68e6ed5bd5e904
layers: Only call ValidateLayouts if no prior error

The long-term solution here is to merge some of this code together, but
validating the layouts later and only if nothing else was bogus is a
good start.

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