Defer makeCoherent call to blocking calls

This allows flush() not to be blocking while using TBX

Resolves: NEO-3054
Change-Id: Ib3a408d4b5ec66f0848572841b3c60785fc28ad9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2019-04-18 12:37:57 +02:00
committed by sys_ocldev
parent 79e22a09b9
commit b7bd3aa793
7 changed files with 80 additions and 53 deletions

View File

@@ -392,18 +392,6 @@ TEST(CommandStreamReceiverSimpleTest, givenNullHardwareDebugModeWhenInitializeTa
EXPECT_EQ(*csr->getTagAddress(), static_cast<uint32_t>(-1));
}
TEST(CommandStreamReceiverSimpleTest, givenCSRWhenWaitBeforeMakingNonResidentWhenRequiredIsCalledWithBlockingFlagSetThenItReturnsImmediately) {
ExecutionEnvironment executionEnvironment;
MockCommandStreamReceiver csr(executionEnvironment);
uint32_t tag = 0;
MockGraphicsAllocation allocation(&tag, sizeof(tag));
csr.latestFlushedTaskCount = 3;
csr.setTagAllocation(&allocation);
csr.waitBeforeMakingNonResidentWhenRequired();
EXPECT_EQ(0u, tag);
}
TEST(CommandStreamReceiverSimpleTest, givenVariousDataSetsWhenVerifyingMemoryThenCorrectValueIsReturned) {
ExecutionEnvironment executionEnvironment;
MockCommandStreamReceiver csr(executionEnvironment);