mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 13:18:37 +00:00
The parent built all_stages from modules_ok, modules_bad and stats but not big_skipped, so a stage whose only result was a BIG SKIP never got an ISO-RESULT and was missing from the summary. Use a shared summary_stages() helper that includes all four maps, with a CPU fixture that fails on the old helper.
22 lines
915 B
C++
22 lines
915 B
C++
// vk_pipeline_check's isolate summary stage set, without a Vulkan device.
|
|
#pragma once
|
|
#include <set>
|
|
#include <string>
|
|
|
|
namespace leonida {
|
|
|
|
// Every stage with a result in any of the maps. big_skipped counts: a BIG SKIP is a result too, and a stage that
|
|
// only ever skipped large modules must still appear in the parent's summary.
|
|
template <class OkMap, class BadMap, class StatsMap, class BigMap>
|
|
std::set<std::string> summary_stages(const OkMap& modules_ok, const BadMap& modules_bad, const StatsMap& stats,
|
|
const BigMap& big_skipped) {
|
|
std::set<std::string> out;
|
|
for (const auto& entry : modules_ok) out.insert(entry.first);
|
|
for (const auto& entry : modules_bad) out.insert(entry.first);
|
|
for (const auto& entry : stats) out.insert(entry.first);
|
|
for (const auto& entry : big_skipped) out.insert(entry.first);
|
|
return out;
|
|
}
|
|
|
|
} // namespace leonida
|