test: stateful and stateless matchers

Related-to: NEO-11859

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:
Damian Tomczak
2024-09-23 15:12:25 +00:00
committed by Compute-Runtime-Automation
parent 4d68f1de43
commit 2b9942b853

View File

@@ -86,3 +86,18 @@ struct IsXeLpg {
return IsXeHpgCore::isMatched<productFamily>() && !IsDG2::isMatched<productFamily>();
}
};
struct IsStatefulBufferPreferredForProduct {
template <PRODUCT_FAMILY productFamily>
static constexpr bool isMatched() {
return IsGen12LP::isMatched<productFamily>() ||
IsXeHpgCore::isMatched<productFamily>();
}
};
struct IsStatelessBufferPreferredForProduct {
template <PRODUCT_FAMILY productFamily>
static constexpr bool isMatched() {
return !IsStatefulBufferPreferredForProduct::isMatched<productFamily>();
}
};