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>
std::unique_lock<std::mutex> lock(global_lock);
- skip_call |= ValidateLayouts(dev_data, device, pCreateInfo);
// TODO: As part of wrapping up the mem_tracker/core_validation merge the following routine should be consolidated with
// ValidateLayouts.
skip_call |= ValidateRenderpassAttachmentUsage(dev_data, pCreateInfo);
+ if (!skip_call) {
+ skip_call |= ValidateLayouts(dev_data, device, pCreateInfo);
+ }
lock.unlock();
if (skip_call) {