refactor: Add a new getter to product helper

Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2025-04-28 18:40:02 +00:00
committed by Compute-Runtime-Automation
parent 949a2e5cb9
commit cb4443a545
4 changed files with 11 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ class ProductHelper {
virtual bool isDisableScratchPagesSupported() const = 0;
virtual bool isDisableScratchPagesRequiredForDebugger() const = 0;
virtual bool areSecondaryContextsSupported() const = 0;
virtual bool isPrimaryContextsAggregationSupported() const = 0;
virtual bool isTile64With3DSurfaceOnBCSSupported(const HardwareInfo &hwInfo) const = 0;
virtual bool isDcFlushAllowed() const = 0;
virtual bool isDcFlushMitigated() const = 0;

View File

@@ -434,6 +434,11 @@ bool ProductHelperHw<gfxProduct>::areSecondaryContextsSupported() const {
return false;
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isPrimaryContextsAggregationSupported() const {
return false;
}
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isDcFlushAllowed() const {
using GfxProduct = typename HwMapper<gfxProduct>::GfxProduct;

View File

@@ -70,6 +70,7 @@ class ProductHelperHw : public ProductHelper {
bool isDisableScratchPagesSupported() const override;
bool isDisableScratchPagesRequiredForDebugger() const override;
bool areSecondaryContextsSupported() const override;
bool isPrimaryContextsAggregationSupported() const override;
bool isTile64With3DSurfaceOnBCSSupported(const HardwareInfo &hwInfo) const override;
bool isDcFlushAllowed() const override;
bool isDcFlushMitigated() const override;

View File

@@ -1172,3 +1172,7 @@ HWTEST_F(ProductHelperTest, givenProductHelperWhenQueryIsPostImageWriteFlushRequ
HWTEST_F(ProductHelperTest, givenProductHelperWhenIsExposingSubdevicesAllowedThenTrueIsReturned) {
EXPECT_TRUE(productHelper->isExposingSubdevicesAllowed());
}
HWTEST_F(ProductHelperTest, givenProductHelperWhenGettingIsPrimaryContextsAggregationSupportedThenReturnCorrectValue) {
EXPECT_FALSE(productHelper->isPrimaryContextsAggregationSupported());
}