mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
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:
committed by
Compute-Runtime-Automation
parent
1fc0826394
commit
f46878f290
@@ -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 {
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user