mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Set valid "max number of threads" in MEDIA_VFE_STATE
Change-Id: Icd55fe6b5cae5a92021d2692fe09c19535e64121
This commit is contained in:
committed by
sys_ocldev
parent
49d5ebef0d
commit
623314665b
@@ -268,23 +268,8 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_PipelineSelect) {
|
||||
}
|
||||
|
||||
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_MediaVFEState) {
|
||||
typedef typename FamilyType::MEDIA_VFE_STATE MEDIA_VFE_STATE;
|
||||
|
||||
enqueueWriteBufferRect2D<FamilyType>();
|
||||
|
||||
// All state should be programmed before walker
|
||||
auto itorCmd = find<MEDIA_VFE_STATE *>(itorPipelineSelect, itorWalker);
|
||||
ASSERT_NE(itorWalker, itorCmd);
|
||||
|
||||
auto *cmd = (MEDIA_VFE_STATE *)*itorCmd;
|
||||
|
||||
// Verify we have a valid length
|
||||
EXPECT_EQ(pDevice->getHardwareInfo().pSysInfo->ThreadCount, cmd->getMaximumNumberOfThreads());
|
||||
EXPECT_NE(0u, cmd->getNumberOfUrbEntries());
|
||||
EXPECT_NE(0u, cmd->getUrbEntryAllocationSize());
|
||||
|
||||
// Generically validate this command
|
||||
FamilyType::PARSE::template validateCommand<MEDIA_VFE_STATE *>(cmdList.begin(), itorCmd);
|
||||
validateMediaVFEState<FamilyType>(&pDevice->getHardwareInfo(), cmdMediaVfeState, cmdList, itorMediaVfeState);
|
||||
}
|
||||
HWTEST_F(EnqueueWriteBufferRectTest, givenInOrderQueueAndDstPtrEqualSrcPtrWhenWriteBufferIsExecutedThenTaskLevelShouldNotBeIncreased) {
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user