diff --git a/shared/source/command_stream/command_stream_receiver.cpp b/shared/source/command_stream/command_stream_receiver.cpp index 0947d6ff97..97e0d101fb 100644 --- a/shared/source/command_stream/command_stream_receiver.cpp +++ b/shared/source/command_stream/command_stream_receiver.cpp @@ -258,6 +258,7 @@ void CommandStreamReceiver::ensureCommandBufferAllocation(LinearStream &commandS if (commandStream.getGraphicsAllocation() != nullptr) { getInternalAllocationStorage()->storeAllocation(std::unique_ptr(commandStream.getGraphicsAllocation()), REUSABLE_ALLOCATION); + this->ucResourceRequiresTagUpdate = true; } commandStream.replaceBuffer(allocation->getUnderlyingBuffer(), allocationSize - additionalAllocationSize); diff --git a/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp b/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp index b99e826113..8fb49d3555 100644 --- a/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp +++ b/shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp @@ -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().ucResourceRequiresTagUpdate); + EXPECT_TRUE(pDevice->getUltCommandStreamReceiver().ucResourceRequiresTagUpdate); memoryManager->freeGraphicsMemory(commandStream.getGraphicsAllocation()); }