Mark buffers as not resident after exec

Change-Id: I6406c626bfaadf01149a8464db2bb4278cbdcbce
This commit is contained in:
Jacek Danecki
2018-06-15 18:40:27 +02:00
parent fa3c4d83db
commit 3ae56d6c8d
2 changed files with 5 additions and 0 deletions

View File

@ -839,6 +839,8 @@ TEST_F(DrmCommandStreamGemWorkerTests, givenTaskThatRequiresLargeResourceCountWh
EXPECT_EQ(11u, this->mock->execBuffer.buffer_count);
mm->freeGraphicsMemory(commandBuffer);
for (auto graphicsAllocation : graphicsAllocations) {
DrmAllocation *drmAlloc = reinterpret_cast<DrmAllocation *>(graphicsAllocation);
EXPECT_FALSE(drmAlloc->getBO()->peekIsResident());
mm->freeGraphicsMemory(graphicsAllocation);
}
EXPECT_EQ(11u, execStorage.size());