Pass device to flushTask.

- do not obtain it from memory manager

Change-Id: Icc7c03dc925c69ec5932c5812151ac28dc34d20d
This commit is contained in:
Mrozek, Michal
2018-08-01 10:01:41 +02:00
committed by sys_ocldev
parent c001481557
commit f60847b64e
16 changed files with 162 additions and 99 deletions

View File

@@ -68,7 +68,7 @@ HWTEST_F(CommandQueueSimpleTest, flushWaitlistDoesNotFlushSingleEventWhenTaskCou
dispatchFlags.blocking = true;
dispatchFlags.dcFlush = true;
csr.flushTask(stream, 0, stream, stream, stream, 0, dispatchFlags);
csr.flushTask(stream, 0, stream, stream, stream, 0, dispatchFlags, *pDevice);
EXPECT_EQ(1u, csr.peekLatestSentTaskCount());
csr.taskCount = 1;
@@ -81,4 +81,4 @@ HWTEST_F(CommandQueueSimpleTest, flushWaitlistDoesNotFlushSingleEventWhenTaskCou
EXPECT_EQ(1u, csr.peekTaskCount());
pDevice->getMemoryManager()->freeGraphicsMemory(gfxAllocation);
}
}