Postpone .amber file parsing
authorJari Komppa <jari.komppa@siru.fi>
Wed, 18 Sep 2019 10:22:44 +0000 (13:22 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 17 Oct 2019 08:34:47 +0000 (04:34 -0400)
commite3702832a8fbf6f29e903661ef7b8b83fd91398a
tree0972945056001ba384071590614674419a22b7d2
parent1e1e030d8071ba889789f994ac1c725ea2bdd366
Postpone .amber file parsing

All .amber files were parsed during test indexing, so they were parsed
even if none of the tests were executed. This wasn't a big performance
hit yet, but we're likely to increase the use of amber.

Due to some chicken-and-egg issues part of the capability check was
moved to the start of iterate, but since that throws InternalError if
the check fails this shouldn't be a performance issue.

The tests themselves have not changed, just the order of when to parse
the file.

Affects: None

Components: Vulkan, Framework

VK-GL-CTS issue: 899

Change-Id: Iacdfd9a61d439e3f5dec952b2426386a2eb3451c
external/vulkancts/modules/vulkan/amber/vktAmberTestCase.cpp
external/vulkancts/modules/vulkan/amber/vktAmberTestCase.hpp
external/vulkancts/modules/vulkan/amber/vktAmberTestCaseUtil.cpp