diff --git a/shared/source/os_interface/product_helper_xe_hpg_and_xe_hpc.inl b/shared/source/os_interface/product_helper_xe_hpg_and_xe_hpc.inl index 333e4b0d5f..22f6d0acbf 100644 --- a/shared/source/os_interface/product_helper_xe_hpg_and_xe_hpc.inl +++ b/shared/source/os_interface/product_helper_xe_hpg_and_xe_hpc.inl @@ -39,6 +39,12 @@ uint64_t ProductHelperHw::getCrossDeviceSharedMemCapabilities() cons return capabilities; } +template +void ProductHelperHw::enableCompression(HardwareInfo *hwInfo) const { + hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.flags.ftrE2ECompression; + hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.flags.ftrE2ECompression; +} + template uint32_t ProductHelperHw::getMaxThreadsForWorkgroupInDSSOrSS(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice, uint32_t maxNumEUsPerDualSubSlice) const { if (isMaxThreadsForWorkgroupWARequired(hwInfo)) { diff --git a/shared/source/xe_hpc_core/pvc/os_agnostic_product_helper_pvc.inl b/shared/source/xe_hpc_core/pvc/os_agnostic_product_helper_pvc.inl index ff49738642..521f372d56 100644 --- a/shared/source/xe_hpc_core/pvc/os_agnostic_product_helper_pvc.inl +++ b/shared/source/xe_hpc_core/pvc/os_agnostic_product_helper_pvc.inl @@ -244,10 +244,4 @@ bool ProductHelperHw::isSharingWith3dOrMediaAllowed() const { return false; } -template -void ProductHelperHw::enableCompression(HardwareInfo *hwInfo) const { - hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.flags.ftrE2ECompression; - hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.flags.ftrE2ECompression; -} - } // namespace NEO diff --git a/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl b/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl index d46f6da3fd..e6c1642a06 100644 --- a/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl +++ b/shared/source/xe_hpg_core/dg2/os_agnostic_product_helper_dg2.inl @@ -271,10 +271,4 @@ bool ProductHelperHw::isHostUsmAllocationReuseSupported() const { return true; } -template -void ProductHelperHw::enableCompression(HardwareInfo *hwInfo) const { - hwInfo->capabilityTable.ftrRenderCompressedImages = hwInfo->featureTable.flags.ftrE2ECompression; - hwInfo->capabilityTable.ftrRenderCompressedBuffers = hwInfo->featureTable.flags.ftrE2ECompression; -} - } // namespace NEO diff --git a/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl b/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl index a86a9631c2..d66a5632d9 100644 --- a/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl +++ b/shared/source/xe_hpg_core/xe_lpg/os_agnostic_product_helper_xe_lpg.inl @@ -121,8 +121,4 @@ template <> bool ProductHelperHw::isHostUsmAllocationReuseSupported() const { return true; } - -template -void ProductHelperHw::enableCompression(HardwareInfo *hwInfo) const {} - } // namespace NEO diff --git a/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp b/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp index 3e5ca5fa63..15d2a6c2e3 100644 --- a/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp +++ b/shared/test/unit_test/xe_hpg_core/os_agnostic_product_helper_xe_lpg_tests.cpp @@ -371,13 +371,3 @@ HWTEST2_F(XeLpgProductHelperTests, givenPatIndexWhenCheckIsCoherentAllocationThe EXPECT_FALSE(productHelper->isCoherentAllocation(patIndex).value()); } } - -HWTEST2_F(XeLpgProductHelperTests, givenProductHelperWhenCallConfigureHardwareCustomThenCompressionIsDisabled, IsXeLpg) { - auto hwInfo = *defaultHwInfo; - hwInfo.featureTable.flags.ftrE2ECompression = true; - - productHelper->configureHardwareCustom(&hwInfo, nullptr); - - EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedBuffers); - EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedImages); -}