1
1
/*
2
- * Copyright (C) 2021-2023 Intel Corporation
2
+ * Copyright (C) 2025 Intel Corporation
3
3
*
4
4
* SPDX-License-Identifier: MIT
5
5
*
6
6
*/
7
7
8
- #include " shared/source/helpers/gfx_core_helper.h"
9
- #include " shared/source/os_interface/os_interface.h"
10
- #include " shared/test/common/helpers/debug_manager_state_restore.h"
11
- #include " shared/test/common/helpers/default_hw_info.h"
8
+ #include " shared/source/gen12lp/hw_info_gen12lp.h"
9
+ #include " shared/source/os_interface/product_helper.h"
12
10
#include " shared/test/common/test_macros/header/per_product_test_definitions.h"
13
- #include " shared/test/unit_test/os_interface/linux/product_helper_linux_tests.h"
14
-
15
- #include " hw_cmds.h"
11
+ #include " shared/test/unit_test/os_interface/product_helper_tests.h"
16
12
17
13
using namespace NEO ;
18
14
19
- using Gen12lpProductHelperLinux = ProductHelperTestLinux ;
15
+ using Gen12lpProductHelper = ProductHelperTest ;
20
16
21
- GEN12LPTEST_F (Gen12lpProductHelperLinux , givenGen12LpProductWhenAdjustPlatformForProductFamilyCalledThenOverrideWithCorrectFamily) {
17
+ GEN12LPTEST_F (Gen12lpProductHelper , givenGen12LpProductWhenAdjustPlatformForProductFamilyCalledThenOverrideWithCorrectFamily) {
22
18
23
19
PLATFORM *testPlatform = &outHwInfo.platform ;
24
20
testPlatform->eDisplayCoreFamily = IGFX_GEN11_CORE;
@@ -29,7 +25,7 @@ GEN12LPTEST_F(Gen12lpProductHelperLinux, givenGen12LpProductWhenAdjustPlatformFo
29
25
EXPECT_EQ (IGFX_GEN12LP_CORE, testPlatform->eDisplayCoreFamily );
30
26
}
31
27
32
- GEN12LPTEST_F (Gen12lpProductHelperLinux , givenCompressionFtrEnabledWhenAskingForPageTableManagerThenReturnCorrectValue) {
28
+ GEN12LPTEST_F (Gen12lpProductHelper , givenCompressionFtrEnabledWhenAskingForPageTableManagerThenReturnCorrectValue) {
33
29
34
30
outHwInfo.capabilityTable .ftrRenderCompressedBuffers = false ;
35
31
outHwInfo.capabilityTable .ftrRenderCompressedImages = false ;
@@ -47,3 +43,8 @@ GEN12LPTEST_F(Gen12lpProductHelperLinux, givenCompressionFtrEnabledWhenAskingFor
47
43
outHwInfo.capabilityTable .ftrRenderCompressedImages = true ;
48
44
EXPECT_TRUE (productHelper->isPageTableManagerSupported (outHwInfo));
49
45
}
46
+
47
+ GEN12LPTEST_F (Gen12lpProductHelper, givenProductHelperThenCompressionIsForbidden) {
48
+ auto hwInfo = *defaultHwInfo;
49
+ EXPECT_TRUE (productHelper->isCompressionForbidden (hwInfo));
50
+ }
0 commit comments