From 837d6f5ad163386d622261139fa1dc5318d4e2bb Mon Sep 17 00:00:00 2001 From: Jaroslaw Warchulski Date: Thu, 27 Feb 2025 09:17:20 +0000 Subject: [PATCH] fix: do not enable compression on xe_lpg for linux and WSL Resolves: HSD-18034872015 Signed-off-by: Jaroslaw Warchulski --- .../xe_lpg/linux/product_helper_xe_lpg_linux.inl | 4 +--- .../arl/linux/product_helper_tests_arl.cpp | 12 +++++++++++- .../mtl/linux/product_helper_tests_mtl_linux.cpp | 12 +++++++++++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/shared/source/xe_hpg_core/xe_lpg/linux/product_helper_xe_lpg_linux.inl b/shared/source/xe_hpg_core/xe_lpg/linux/product_helper_xe_lpg_linux.inl index e110cdd6ca..e8002c0cbb 100644 --- a/shared/source/xe_hpg_core/xe_lpg/linux/product_helper_xe_lpg_linux.inl +++ b/shared/source/xe_hpg_core/xe_lpg/linux/product_helper_xe_lpg_linux.inl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023-2024 Intel Corporation + * Copyright (C) 2023-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -13,8 +13,6 @@ namespace NEO { template <> int ProductHelperHw::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const { - enableCompression(hwInfo); - enableBlitterOperationsSupport(hwInfo); auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties; diff --git a/shared/test/unit_test/xe_hpg_core/arl/linux/product_helper_tests_arl.cpp b/shared/test/unit_test/xe_hpg_core/arl/linux/product_helper_tests_arl.cpp index 1c36a4db62..b49db6efc4 100644 --- a/shared/test/unit_test/xe_hpg_core/arl/linux/product_helper_tests_arl.cpp +++ b/shared/test/unit_test/xe_hpg_core/arl/linux/product_helper_tests_arl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023-2024 Intel Corporation + * Copyright (C) 2023-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -99,3 +99,13 @@ ARLTEST_F(ArlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer)); EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer)); } + +ARLTEST_F(ArlProductHelperLinux, givenProductHelperWhenCallConfigureHardwareCustomThenCompressionIsDisabled) { + auto hwInfo = *defaultHwInfo; + hwInfo.featureTable.flags.ftrE2ECompression = true; + + productHelper->configureHardwareCustom(&hwInfo, nullptr); + + EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedBuffers); + EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedImages); +} diff --git a/shared/test/unit_test/xe_hpg_core/mtl/linux/product_helper_tests_mtl_linux.cpp b/shared/test/unit_test/xe_hpg_core/mtl/linux/product_helper_tests_mtl_linux.cpp index e0a55164f3..f47550ef5e 100644 --- a/shared/test/unit_test/xe_hpg_core/mtl/linux/product_helper_tests_mtl_linux.cpp +++ b/shared/test/unit_test/xe_hpg_core/mtl/linux/product_helper_tests_mtl_linux.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2024 Intel Corporation + * Copyright (C) 2021-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -73,3 +73,13 @@ MTLTEST_F(MtlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer)); EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer)); } + +MTLTEST_F(MtlProductHelperLinux, givenProductHelperWhenCallConfigureHardwareCustomThenCompressionIsDisabled) { + auto hwInfo = *defaultHwInfo; + hwInfo.featureTable.flags.ftrE2ECompression = true; + + productHelper->configureHardwareCustom(&hwInfo, nullptr); + + EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedBuffers); + EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedImages); +}