diff --git a/shared/source/os_interface/product_helper.h b/shared/source/os_interface/product_helper.h index 0181ec41b7..11b2176ada 100644 --- a/shared/source/os_interface/product_helper.h +++ b/shared/source/os_interface/product_helper.h @@ -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; diff --git a/shared/source/os_interface/product_helper.inl b/shared/source/os_interface/product_helper.inl index 376e0c2e40..d2080b2f43 100644 --- a/shared/source/os_interface/product_helper.inl +++ b/shared/source/os_interface/product_helper.inl @@ -434,6 +434,11 @@ bool ProductHelperHw::areSecondaryContextsSupported() const { return false; } +template +bool ProductHelperHw::isPrimaryContextsAggregationSupported() const { + return false; +} + template bool ProductHelperHw::isDcFlushAllowed() const { using GfxProduct = typename HwMapper::GfxProduct; diff --git a/shared/source/os_interface/product_helper_hw.h b/shared/source/os_interface/product_helper_hw.h index 24b40717c1..d9d2af9126 100644 --- a/shared/source/os_interface/product_helper_hw.h +++ b/shared/source/os_interface/product_helper_hw.h @@ -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; diff --git a/shared/test/unit_test/os_interface/product_helper_tests.cpp b/shared/test/unit_test/os_interface/product_helper_tests.cpp index 1f0a70748d..ba63772101 100644 --- a/shared/test/unit_test/os_interface/product_helper_tests.cpp +++ b/shared/test/unit_test/os_interface/product_helper_tests.cpp @@ -1172,3 +1172,7 @@ HWTEST_F(ProductHelperTest, givenProductHelperWhenQueryIsPostImageWriteFlushRequ HWTEST_F(ProductHelperTest, givenProductHelperWhenIsExposingSubdevicesAllowedThenTrueIsReturned) { EXPECT_TRUE(productHelper->isExposingSubdevicesAllowed()); } + +HWTEST_F(ProductHelperTest, givenProductHelperWhenGettingIsPrimaryContextsAggregationSupportedThenReturnCorrectValue) { + EXPECT_FALSE(productHelper->isPrimaryContextsAggregationSupported()); +}