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)
commitab38df28c5ae1816c5fa33c0c7840c6950e83f0d
treefd21eef7b029bb2105c935be8e7a81bf8d2c90ca
parentfeace7171263bd143ef8bff087fb01285e1fde48
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