mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Graphics Allocation: store task count per context id
Move definition of allocations list method to internal_allocation_storage.cpp Change-Id: I4c6038df8fd1b9335e8a74edbab33b78f9293d8f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ea2e634f7e
commit
815ae851b7
@@ -638,8 +638,8 @@ TEST_F(WddmCommandStreamTest, givenTwoTemporaryAllocationsWhenCleanTemporaryAllo
|
||||
csr->getInternalAllocationStorage()->storeAllocation(std::unique_ptr<GraphicsAllocation>(graphicsAllocation), TEMPORARY_ALLOCATION);
|
||||
csr->getInternalAllocationStorage()->storeAllocation(std::unique_ptr<GraphicsAllocation>(graphicsAllocation2), TEMPORARY_ALLOCATION);
|
||||
|
||||
graphicsAllocation->taskCount = 1;
|
||||
graphicsAllocation2->taskCount = 100;
|
||||
graphicsAllocation->updateTaskCount(1, 0u);
|
||||
graphicsAllocation2->updateTaskCount(100, 0u);
|
||||
|
||||
csr->waitForTaskCountAndCleanAllocationList(1, TEMPORARY_ALLOCATION);
|
||||
// graphicsAllocation2 still lives
|
||||
|
||||
@@ -1602,7 +1602,7 @@ TEST(WddmMemoryManagerCleanupTest, givenUsedTagAllocationInWddmMemoryManagerWhen
|
||||
EXPECT_EQ(executionEnvironment.commandStreamReceivers[0].get(), executionEnvironment.memoryManager->getCommandStreamReceiver(0));
|
||||
auto tagAllocator = executionEnvironment.memoryManager->getEventPerfCountAllocator();
|
||||
auto allocation = tagAllocator->getTag()->getGraphicsAllocation();
|
||||
allocation->taskCount = 1;
|
||||
allocation->updateTaskCount(1, 0);
|
||||
executionEnvironment.commandStreamReceivers.clear();
|
||||
EXPECT_THROW(executionEnvironment.memoryManager->getCommandStreamReceiver(0), std::exception);
|
||||
EXPECT_NO_THROW(executionEnvironment.memoryManager.reset());
|
||||
|
||||
Reference in New Issue
Block a user