Skip to content

Commit 5442ad2

Browse files
fix: do not enable compression on xe_lpg for linux and WSL
Resolves: HSD-18034872015 Signed-off-by: Jaroslaw Warchulski <[email protected]> Source: 837d6f5
1 parent a6a176e commit 5442ad2

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

shared/source/xe_hpg_core/xe_lpg/linux/product_helper_xe_lpg_linux.inl

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023-2024 Intel Corporation
2+
* Copyright (C) 2023-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -13,8 +13,6 @@
1313
namespace NEO {
1414
template <>
1515
int ProductHelperHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, OSInterface *osIface) const {
16-
enableCompression(hwInfo);
17-
1816
enableBlitterOperationsSupport(hwInfo);
1917

2018
auto &kmdNotifyProperties = hwInfo->capabilityTable.kmdNotifyProperties;

shared/test/unit_test/xe_hpg_core/arl/linux/product_helper_tests_arl.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2023-2024 Intel Corporation
2+
* Copyright (C) 2023-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -99,3 +99,13 @@ ARLTEST_F(ArlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe
9999
EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer));
100100
EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer));
101101
}
102+
103+
ARLTEST_F(ArlProductHelperLinux, givenProductHelperWhenCallConfigureHardwareCustomThenCompressionIsDisabled) {
104+
auto hwInfo = *defaultHwInfo;
105+
hwInfo.featureTable.flags.ftrE2ECompression = true;
106+
107+
productHelper->configureHardwareCustom(&hwInfo, nullptr);
108+
109+
EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedBuffers);
110+
EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedImages);
111+
}

shared/test/unit_test/xe_hpg_core/mtl/linux/product_helper_tests_mtl_linux.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021-2024 Intel Corporation
2+
* Copyright (C) 2021-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -73,3 +73,13 @@ MTLTEST_F(MtlProductHelperLinux, givenBooleanUncachedWhenCallOverridePatIndexThe
7373
EXPECT_EQ(0u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::buffer));
7474
EXPECT_EQ(3u, productHelper->overridePatIndex(isUncached, patIndex, AllocationType::commandBuffer));
7575
}
76+
77+
MTLTEST_F(MtlProductHelperLinux, givenProductHelperWhenCallConfigureHardwareCustomThenCompressionIsDisabled) {
78+
auto hwInfo = *defaultHwInfo;
79+
hwInfo.featureTable.flags.ftrE2ECompression = true;
80+
81+
productHelper->configureHardwareCustom(&hwInfo, nullptr);
82+
83+
EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedBuffers);
84+
EXPECT_FALSE(hwInfo.capabilityTable.ftrRenderCompressedImages);
85+
}

0 commit comments

Comments
 (0)