Files
compute-runtime/shared/test/unit_test/helpers/hw_info_tests.cpp
Mateusz Jablonski f55ad93baf fix: remove L3 config from release helper
L3 bank count should be queried from KMD
L3 bank size should be queried from device blob

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-11-12 14:28:36 +01:00

42 lines
1.6 KiB
C++

/*
* Copyright (C) 2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/test/common/test_macros/test.h"
using namespace NEO;
TEST(HwInfoTest, whenSettingDefaultFeatureTableAndWorkaroundTableThenProperFieldsAreSet) {
HardwareInfo hwInfo{};
FeatureTable expectedFeatureTable{};
WorkaroundTable expectedWorkaroundTable{};
expectedFeatureTable.flags.ftrAstcHdr2D = true;
expectedFeatureTable.flags.ftrAstcLdr2D = true;
expectedFeatureTable.flags.ftrCCSNode = true;
expectedFeatureTable.flags.ftrCCSRing = true;
expectedFeatureTable.flags.ftrFbc = true;
expectedFeatureTable.flags.ftrGpGpuMidBatchPreempt = true;
expectedFeatureTable.flags.ftrGpGpuThreadGroupLevelPreempt = true;
expectedFeatureTable.flags.ftrIA32eGfxPTEs = true;
expectedFeatureTable.flags.ftrL3IACoherency = true;
expectedFeatureTable.flags.ftrLinearCCS = true;
expectedFeatureTable.flags.ftrPPGTT = true;
expectedFeatureTable.flags.ftrSVM = true;
expectedFeatureTable.flags.ftrStandardMipTailFormat = true;
expectedFeatureTable.flags.ftrTileMappedResource = true;
expectedFeatureTable.flags.ftrTranslationTable = true;
expectedFeatureTable.flags.ftrUserModeTranslationTable = true;
expectedWorkaroundTable.flags.wa4kAlignUVOffsetNV12LinearSurface = true;
setupDefaultFeatureTableAndWorkaroundTable(&hwInfo);
EXPECT_EQ(expectedFeatureTable.asHash(), hwInfo.featureTable.asHash());
EXPECT_EQ(expectedWorkaroundTable.asHash(), hwInfo.workaroundTable.asHash());
}