mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
fix: always enable force write completion check on SDI command
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
988c379da8
commit
44dfa5187a
@@ -588,6 +588,20 @@ HWTEST2_F(CommandEncoderTests, whenForcingLowQualityFilteringAndAppendSamplerSta
|
||||
EXPECT_EQ(SAMPLER_STATE::LOW_QUALITY_FILTER_ENABLE, state.getLowQualityFilter());
|
||||
}
|
||||
|
||||
HWTEST2_F(CommandEncoderTests, givenSdiCommandWhenProgrammingThenForceWriteCompletionCheck, IsAtLeastGen12lp) {
|
||||
using MI_STORE_DATA_IMM = typename FamilyType::MI_STORE_DATA_IMM;
|
||||
|
||||
constexpr size_t bufferSize = sizeof(MI_STORE_DATA_IMM);
|
||||
uint8_t buffer[bufferSize];
|
||||
LinearStream cmdStream(buffer, bufferSize);
|
||||
|
||||
EncodeStoreMemory<FamilyType>::programStoreDataImm(cmdStream, 0, 0, 0, false, false, nullptr);
|
||||
|
||||
auto storeDataImm = genCmdCast<MI_STORE_DATA_IMM *>(buffer);
|
||||
ASSERT_NE(nullptr, storeDataImm);
|
||||
EXPECT_TRUE(storeDataImm->getForceWriteCompletionCheck());
|
||||
}
|
||||
|
||||
HWTEST2_F(CommandEncoderTests, whenAskingForImplicitScalingValuesThenAlwaysReturnStubs, IsAtMostGen12lp) {
|
||||
using WalkerType = typename FamilyType::DefaultWalkerType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user