mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Fix for Execution model PageFaults
- adding PC with MediaStateClear and MEDIA_VFE_STATE in EMCleanupSection Change-Id: I0ee0e121bc2fcc09ac79cb3b601591247326482a
This commit is contained in:

committed by
sys_ocldev

parent
03646887bf
commit
a9f30a5059
@ -506,3 +506,19 @@ HWTEST_F(ParentKernelEnqueueFixture, givenCsrInBatchingModeWhenExecutionModelKer
|
||||
EXPECT_EQ(1, mockCsr->flushCalledCount);
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(ParentKernelEnqueueFixture, ParentKernelEnqueueMarksCSRMediaVFEStateDirty) {
|
||||
|
||||
if (pDevice->getSupportedClVersion() >= 20) {
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
size_t gws[3] = {1, 1, 1};
|
||||
int32_t execStamp;
|
||||
auto mockCsr = new MockCsr<FamilyType>(execStamp);
|
||||
pDevice->resetCommandStreamReceiver(mockCsr);
|
||||
|
||||
mockCsr->overrideMediaVFEStateDirty(false);
|
||||
pCmdQ->enqueueKernel(parentKernel, 1, offset, gws, gws, 0, nullptr, nullptr);
|
||||
|
||||
EXPECT_TRUE(mockCsr->peekMediaVfeStateDirty());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user