fix: call isPrefetchDisablingRequired directly from release helper
Related-To: NEO-7786 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
parent
bc719ad80e
commit
b092dd0cf2
|
@ -114,7 +114,6 @@ class ProductHelper {
|
|||
virtual bool imagePitchAlignmentWARequired(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool is3DPipelineSelectWARequired() const = 0;
|
||||
virtual bool isPrefetchDisablingRequired(const ReleaseHelper *releaseHelper) const = 0;
|
||||
virtual bool isStorageInfoAdjustmentRequired() const = 0;
|
||||
virtual bool isBlitterForImagesSupported() const = 0;
|
||||
virtual bool isPageFaultSupported() const = 0;
|
||||
|
|
|
@ -277,14 +277,6 @@ bool ProductHelperHw<gfxProduct>::isAllocationSizeAdjustmentRequired(const Hardw
|
|||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isPrefetchDisablingRequired(const ReleaseHelper *releaseHelper) const {
|
||||
if (releaseHelper) {
|
||||
return releaseHelper->isPrefetchDisablingRequired();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isAssignEngineRoundRobinSupported() const {
|
||||
return false;
|
||||
|
|
|
@ -68,7 +68,6 @@ class ProductHelperHw : public ProductHelper {
|
|||
bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) const override;
|
||||
bool is3DPipelineSelectWARequired() const override;
|
||||
bool isStorageInfoAdjustmentRequired() const override;
|
||||
bool isPrefetchDisablingRequired(const ReleaseHelper *releaseHelper) const override;
|
||||
bool isBlitterForImagesSupported() const override;
|
||||
bool isPageFaultSupported() const override;
|
||||
bool isKmdMigrationSupported() const override;
|
||||
|
|
|
@ -119,9 +119,8 @@ void EncodeDispatchKernel<Family>::programBarrierEnable(INTERFACE_DESCRIPTOR_DAT
|
|||
|
||||
template <>
|
||||
void EncodeDispatchKernel<Family>::encodeAdditionalWalkerFields(const RootDeviceEnvironment &rootDeviceEnvironment, WALKER_TYPE &walkerCmd, const EncodeWalkerArgs &walkerArgs) {
|
||||
auto &productHelper = rootDeviceEnvironment.getHelper<ProductHelper>();
|
||||
auto *releaseHelper = rootDeviceEnvironment.getReleaseHelper();
|
||||
bool l3PrefetchDisable = productHelper.isPrefetchDisablingRequired(releaseHelper);
|
||||
bool l3PrefetchDisable = releaseHelper->isPrefetchDisablingRequired();
|
||||
int32_t overrideL3PrefetchDisable = DebugManager.flags.ForceL3PrefetchForComputeWalker.get();
|
||||
if (overrideL3PrefetchDisable != -1) {
|
||||
l3PrefetchDisable = !overrideL3PrefetchDisable;
|
||||
|
|
|
@ -185,11 +185,6 @@ bool ProductHelperHw<IGFX_UNKNOWN>::isAllocationSizeAdjustmentRequired(const Har
|
|||
return false;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<IGFX_UNKNOWN>::isPrefetchDisablingRequired(const ReleaseHelper *releaseHelper) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<IGFX_UNKNOWN>::isNewResidencyModelSupported() const {
|
||||
return false;
|
||||
|
|
|
@ -328,11 +328,6 @@ HWTEST_F(ProductHelperTest, WhenCheckAssignEngineRoundRobinSupportedThenReturnFa
|
|||
EXPECT_FALSE(productHelper->isAssignEngineRoundRobinSupported());
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskedIfPrefetchDisablingIsRequiredThenFalseIsReturned) {
|
||||
|
||||
EXPECT_FALSE(productHelper->isPrefetchDisablingRequired(releaseHelper));
|
||||
}
|
||||
|
||||
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskedIfPipeControlPriorToNonPipelinedStateCommandsWARequiredThenFalseIsReturned) {
|
||||
|
||||
auto isRcs = false;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "shared/source/helpers/gfx_core_helper.h"
|
||||
#include "shared/source/helpers/product_config_helper.h"
|
||||
#include "shared/source/os_interface/product_helper.h"
|
||||
#include "shared/source/release_helper/release_helper.h"
|
||||
#include "shared/source/xe_hpg_core/hw_cmds_dg2.h"
|
||||
#include "shared/test/common/fixtures/device_fixture.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
|
@ -293,7 +294,7 @@ DG2TEST_F(ProductHelperTestDg2, givenDg2G10A0OrA1SteppingWhenAskingIfWAIsRequire
|
|||
|
||||
EXPECT_EQ(expectedValue, productHelper->isDefaultEngineTypeAdjustmentRequired(hwInfo));
|
||||
EXPECT_EQ(expectedValue, productHelper->isAllocationSizeAdjustmentRequired(hwInfo));
|
||||
EXPECT_EQ(expectedValue, productHelper->isPrefetchDisablingRequired(releaseHelper));
|
||||
EXPECT_EQ(expectedValue, releaseHelper->isPrefetchDisablingRequired());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue