mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Unify memory layout for all multi tile post sync operations
Related-To: NEO-6262 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
63116e4100
commit
3e1023fa1a
@@ -171,9 +171,11 @@ TEST_F(DeferrableAllocationDeletionTest, givenAllocationUsedByUnregisteredEngine
|
||||
EXPECT_EQ(1u, memoryManager->freeGraphicsMemoryCalled);
|
||||
}
|
||||
|
||||
TEST_F(DeferrableAllocationDeletionTest, givenMultiTileWhenTaskCompletedOnSingleTileThenDoNotFreeGraphicsAllocation) {
|
||||
device->getDefaultEngine().commandStreamReceiver->setActivePartitions(2u);
|
||||
auto hwTagNextTile = ptrOffset(hwTag, 8);
|
||||
HWTEST_F(DeferrableAllocationDeletionTest, givenMultiTileWhenTaskCompletedOnSingleTileThenDoNotFreeGraphicsAllocation) {
|
||||
auto csr = reinterpret_cast<UltCommandStreamReceiver<FamilyType> *>(device->getDefaultEngine().commandStreamReceiver);
|
||||
csr->setActivePartitions(2u);
|
||||
csr->postSyncWriteOffset = 32;
|
||||
auto hwTagNextTile = ptrOffset(hwTag, 32);
|
||||
|
||||
auto allocation = memoryManager->allocateGraphicsMemoryWithProperties(MockAllocationProperties{device->getRootDeviceIndex(), MemoryConstants::pageSize});
|
||||
allocation->updateTaskCount(1u, defaultOsContextId);
|
||||
|
||||
Reference in New Issue
Block a user