fix: prevent from using MEM_SET::MODE_EVICT_MODE on BMG

Related-To: HSD-14025389045

Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
Pawel Wilma
2025-07-29 16:29:02 +00:00
committed by Compute-Runtime-Automation
parent 1fc0826394
commit f46878f290
2 changed files with 2 additions and 2 deletions

View File

@@ -7512,6 +7512,7 @@ typedef struct tagMEM_SET {
return static_cast<FILL_TYPE>(TheStructure.Common.FillType);
}
inline void setMode(const MODE value) {
UNRECOVERABLE_IF(value == MODE_EVICT_MODE);
TheStructure.Common.Mode = value;
}
inline MODE getMode() const {

View File

@@ -3596,8 +3596,7 @@ XE2_HPG_CORETEST_F(CommandsXe2HpgCoreTest, GivenMemSetWhenSetterUsedThenGetterRe
cmd.setMode(MEM_SET::MODE_FILL_MODE);
EXPECT_EQ(MEM_SET::MODE_FILL_MODE, cmd.getMode());
cmd.setMode(MEM_SET::MODE_EVICT_MODE);
EXPECT_EQ(MEM_SET::MODE_EVICT_MODE, cmd.getMode());
EXPECT_THROW(cmd.setMode(MEM_SET::MODE_EVICT_MODE), std::exception);
cmd.setInstructionTargetOpcode(MEM_SET::INSTRUCTION_TARGETOPCODE_MEM_SET);
EXPECT_EQ(MEM_SET::INSTRUCTION_TARGETOPCODE_MEM_SET, cmd.getInstructionTargetOpcode());