|
6 | 6 | */
|
7 | 7 |
|
8 | 8 | #include "shared/source/command_stream/stream_properties.h"
|
| 9 | +#include "shared/source/debug_settings/debug_settings_manager.h" |
9 | 10 | #include "shared/source/execution_environment/execution_environment.h"
|
10 | 11 | #include "shared/source/execution_environment/root_device_environment.h"
|
11 | 12 | #include "shared/source/helpers/compiler_product_helper.h"
|
12 | 13 | #include "shared/source/helpers/constants.h"
|
13 | 14 | #include "shared/source/helpers/gfx_core_helper.h"
|
14 | 15 | #include "shared/source/helpers/product_config_helper.h"
|
15 | 16 | #include "shared/source/os_interface/product_helper.h"
|
16 |
| -#include "shared/source/release_helper/release_helper.h" |
17 | 17 | #include "shared/source/xe_hpg_core/hw_cmds_dg2.h"
|
18 |
| -#include "shared/test/common/fixtures/device_fixture.h" |
19 | 18 | #include "shared/test/common/helpers/debug_manager_state_restore.h"
|
20 |
| -#include "shared/test/common/mocks/mock_command_stream_receiver.h" |
21 |
| -#include "shared/test/common/mocks/mock_device.h" |
| 19 | +#include "shared/test/common/helpers/default_hw_info.h" |
22 | 20 | #include "shared/test/common/test_macros/header/per_product_test_definitions.h"
|
23 |
| -#include "shared/test/common/test_macros/test.h" |
24 | 21 | #include "shared/test/unit_test/fixtures/product_config_fixture.h"
|
25 | 22 | #include "shared/test/unit_test/os_interface/product_helper_tests.h"
|
26 | 23 |
|
27 | 24 | #include "aubstream/product_family.h"
|
| 25 | +#include "gtest/gtest.h" |
28 | 26 | #include "platforms.h"
|
29 | 27 |
|
| 28 | +#include <array> |
| 29 | + |
30 | 30 | using namespace NEO;
|
31 | 31 | using ProductConfigHelperDg2Tests = ::testing::Test;
|
32 | 32 | using ProductHelperTestDg2 = ProductHelperTest;
|
@@ -520,27 +520,6 @@ DG2TEST_F(ProductHelperTestDg2, givenB0rCSteppingWhenAskingIfTile64With3DSurface
|
520 | 520 | }
|
521 | 521 | }
|
522 | 522 |
|
523 |
| -DG2TEST_F(ProductHelperTestDg2, givenDg2G10A0WhenConfigureCalledThenDisableCompression) { |
524 |
| - |
525 |
| - for (uint8_t revision : {REVISION_A0, REVISION_A1}) { |
526 |
| - for (auto deviceId : {dg2G10DeviceIds[0], dg2G11DeviceIds[0], dg2G12DeviceIds[0]}) { |
527 |
| - HardwareInfo hwInfo = *defaultHwInfo; |
528 |
| - hwInfo.featureTable.flags.ftrE2ECompression = true; |
529 |
| - |
530 |
| - hwInfo.platform.usRevId = productHelper->getHwRevIdFromStepping(revision, hwInfo); |
531 |
| - hwInfo.platform.usDeviceID = deviceId; |
532 |
| - |
533 |
| - productHelper->configureHardwareCustom(&hwInfo, nullptr); |
534 |
| - |
535 |
| - auto compressionExpected = DG2::isG10(hwInfo) ? (revision != REVISION_A0) : true; |
536 |
| - |
537 |
| - EXPECT_EQ(compressionExpected, hwInfo.capabilityTable.ftrRenderCompressedBuffers); |
538 |
| - EXPECT_EQ(compressionExpected, hwInfo.capabilityTable.ftrRenderCompressedImages); |
539 |
| - EXPECT_EQ(compressionExpected, productHelper->allowCompression(hwInfo)); |
540 |
| - } |
541 |
| - } |
542 |
| -} |
543 |
| - |
544 | 523 | DG2TEST_F(ProductHelperTestDg2, givenDg2G10WhenAskingForTile64For3dSurfaceOnBcsSupportThenReturnSuccessOnlyForCStepping) {
|
545 | 524 |
|
546 | 525 | for (uint8_t revision : {REVISION_A0, REVISION_A1, REVISION_B, REVISION_C}) {
|
|
0 commit comments