performance: enable cmd buffers reuse without DC flush

Related-To: NEO-16348

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-10-17 11:39:54 +00:00
committed by Compute-Runtime-Automation
parent 1f524e9d1c
commit 64b79723cc
2 changed files with 2 additions and 1 deletions

View File

@@ -258,6 +258,7 @@ void CommandStreamReceiver::ensureCommandBufferAllocation(LinearStream &commandS
if (commandStream.getGraphicsAllocation() != nullptr) {
getInternalAllocationStorage()->storeAllocation(std::unique_ptr<GraphicsAllocation>(commandStream.getGraphicsAllocation()), REUSABLE_ALLOCATION);
this->ucResourceRequiresTagUpdate = true;
}
commandStream.replaceBuffer(allocation->getUnderlyingBuffer(), allocationSize - additionalAllocationSize);

View File

@@ -2140,7 +2140,7 @@ HWTEST_F(CommandStreamReceiverTest, givenMinimumSizeExceedsCurrentWhenCallingEns
EXPECT_EQ(2 * MemoryConstants::pageSize64k, commandStream.getGraphicsAllocation()->getUnderlyingBufferSize());
EXPECT_EQ(2 * MemoryConstants::pageSize64k, commandStream.getMaxAvailableSpace());
EXPECT_FALSE(pDevice->getUltCommandStreamReceiver<FamilyType>().ucResourceRequiresTagUpdate);
EXPECT_TRUE(pDevice->getUltCommandStreamReceiver<FamilyType>().ucResourceRequiresTagUpdate);
memoryManager->freeGraphicsMemory(commandStream.getGraphicsAllocation());
}