fix: use release helper to get ftrXe2Compression value

Related-To: NEO-13381, NEO-13526
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2024-12-23 09:39:18 +00:00
committed by Compute-Runtime-Automation
parent 5bc0633cdb
commit 54e62da553
16 changed files with 37 additions and 33 deletions

View File

@@ -35,6 +35,7 @@
#include "shared/test/common/mocks/mock_io_functions.h"
#include "shared/test/common/mocks/mock_memory_manager.h"
#include "shared/test/common/mocks/mock_product_helper.h"
#include "shared/test/common/mocks/mock_release_helper.h"
#include "shared/test/common/mocks/ult_device_factory.h"
#include "shared/test/common/test_macros/hw_test.h"
#include "shared/test/common/test_macros/test.h"
@@ -1930,9 +1931,9 @@ TEST_F(DeviceTests, givenNewUsmPoolingEnabledWhenDeviceInitializedThenUsmMemAllo
TEST(DeviceWithoutAILTest, givenNoAILWhenCreateDeviceThenDeviceIsCreated) {
DebugManagerStateRestore dbgRestorer;
debugManager.flags.EnableAIL.set(false);
MockReleaseHelper mockReleaseHelper;
auto hwInfo = *defaultHwInfo;
setupDefaultFeatureTableAndWorkaroundTable(&hwInfo);
setupDefaultFeatureTableAndWorkaroundTable(&hwInfo, mockReleaseHelper);
auto device = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hwInfo));
EXPECT_NE(nullptr, device.get());

View File

@@ -6,6 +6,7 @@
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/test/common/mocks/mock_release_helper.h"
#include "shared/test/common/test_macros/test.h"
using namespace NEO;
@@ -14,6 +15,7 @@ TEST(HwInfoTest, whenSettingDefaultFeatureTableAndWorkaroundTableThenProperField
HardwareInfo hwInfo{};
FeatureTable expectedFeatureTable{};
WorkaroundTable expectedWorkaroundTable{};
MockReleaseHelper mockReleaseHelper;
expectedFeatureTable.flags.ftrAstcHdr2D = true;
expectedFeatureTable.flags.ftrAstcLdr2D = true;
@@ -34,7 +36,7 @@ TEST(HwInfoTest, whenSettingDefaultFeatureTableAndWorkaroundTableThenProperField
expectedWorkaroundTable.flags.wa4kAlignUVOffsetNV12LinearSurface = true;
setupDefaultFeatureTableAndWorkaroundTable(&hwInfo);
setupDefaultFeatureTableAndWorkaroundTable(&hwInfo, mockReleaseHelper);
EXPECT_EQ(expectedFeatureTable.asHash(), hwInfo.featureTable.asHash());
EXPECT_EQ(expectedWorkaroundTable.asHash(), hwInfo.workaroundTable.asHash());