mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Correct useSystemMemoryPlacementForISA
Related-To: NEO-5156 Change-Id: Iee6df3e06eea5707b3b6cb45ac50e9880ee4dfb4 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
21988a81e1
commit
fd492f28b0
@@ -1011,13 +1011,26 @@ TEST(HwInfoConfigCommonHelperTest, givenBlitterPreferenceWhenEnablingBlitterOper
|
||||
}
|
||||
|
||||
HWTEST_F(HwHelperTest, givenHwHelperWhenAskingForIsaSystemMemoryPlacementThenReturnFalseIfLocalMemorySupported) {
|
||||
DebugManagerStateRestore restorer;
|
||||
HwHelper &hwHelper = HwHelper::get(hardwareInfo.platform.eRenderCoreFamily);
|
||||
|
||||
hardwareInfo.featureTable.ftrLocalMemory = true;
|
||||
EXPECT_FALSE(hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
auto localMemoryEnabled = hwHelper.getEnableLocalMemory(hardwareInfo);
|
||||
EXPECT_NE(localMemoryEnabled, hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
|
||||
hardwareInfo.featureTable.ftrLocalMemory = false;
|
||||
EXPECT_TRUE(hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
localMemoryEnabled = hwHelper.getEnableLocalMemory(hardwareInfo);
|
||||
EXPECT_NE(localMemoryEnabled, hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
|
||||
DebugManager.flags.EnableLocalMemory.set(true);
|
||||
hardwareInfo.featureTable.ftrLocalMemory = false;
|
||||
localMemoryEnabled = hwHelper.getEnableLocalMemory(hardwareInfo);
|
||||
EXPECT_NE(localMemoryEnabled, hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
|
||||
DebugManager.flags.EnableLocalMemory.set(false);
|
||||
hardwareInfo.featureTable.ftrLocalMemory = true;
|
||||
localMemoryEnabled = hwHelper.getEnableLocalMemory(hardwareInfo);
|
||||
EXPECT_NE(localMemoryEnabled, hwHelper.useSystemMemoryPlacementForISA(hardwareInfo));
|
||||
}
|
||||
|
||||
TEST(HwInfoConfigCommonHelperTest, givenDebugFlagSetWhenEnablingBlitterOperationsSupportThenHonorTheFlag) {
|
||||
|
||||
Reference in New Issue
Block a user