mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
949a2e5cb9
commit
cb4443a545
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1172,3 +1172,7 @@ HWTEST_F(ProductHelperTest, givenProductHelperWhenQueryIsPostImageWriteFlushRequ
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenIsExposingSubdevicesAllowedThenTrueIsReturned) {
|
||||
EXPECT_TRUE(productHelper->isExposingSubdevicesAllowed());
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenGettingIsPrimaryContextsAggregationSupportedThenReturnCorrectValue) {
|
||||
EXPECT_FALSE(productHelper->isPrimaryContextsAggregationSupported());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user