mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
test: stateful and stateless matchers
Related-to: NEO-11859 Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4d68f1de43
commit
2b9942b853
@@ -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>();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user