mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Add missing makeResident call
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a734921113
commit
1783f5b740
@@ -189,6 +189,7 @@ HWTEST2_F(AppendMemoryCopy, givenAsyncImmediateCommandListWhenAppendingMemoryCop
|
|||||||
DebugManagerStateRestore restore;
|
DebugManagerStateRestore restore;
|
||||||
NEO::DebugManager.flags.EnableFlushTaskSubmission.set(1);
|
NEO::DebugManager.flags.EnableFlushTaskSubmission.set(1);
|
||||||
auto ultCsr = static_cast<UltCommandStreamReceiver<FamilyType> *>(device->getNEODevice()->getDefaultEngine().commandStreamReceiver);
|
auto ultCsr = static_cast<UltCommandStreamReceiver<FamilyType> *>(device->getNEODevice()->getDefaultEngine().commandStreamReceiver);
|
||||||
|
ultCsr->storeMakeResidentAllocations = true;
|
||||||
|
|
||||||
auto cmdQueue = std::make_unique<Mock<CommandQueue>>();
|
auto cmdQueue = std::make_unique<Mock<CommandQueue>>();
|
||||||
cmdQueue->csr = ultCsr;
|
cmdQueue->csr = ultCsr;
|
||||||
@@ -220,6 +221,7 @@ HWTEST2_F(AppendMemoryCopy, givenAsyncImmediateCommandListWhenAppendingMemoryCop
|
|||||||
ASSERT_EQ(ZE_RESULT_SUCCESS, commandList->appendMemoryCopy(dstPtr, srcPtr, 8, nullptr, 0, nullptr));
|
ASSERT_EQ(ZE_RESULT_SUCCESS, commandList->appendMemoryCopy(dstPtr, srcPtr, 8, nullptr, 0, nullptr));
|
||||||
|
|
||||||
EXPECT_EQ(expectedSize, ultCsr->getCS(0).getUsed());
|
EXPECT_EQ(expectedSize, ultCsr->getCS(0).getUsed());
|
||||||
|
EXPECT_TRUE(ultCsr->isMadeResident(commandList->commandContainer.getCommandStream()->getGraphicsAllocation()));
|
||||||
|
|
||||||
size_t offset = 0;
|
size_t offset = 0;
|
||||||
if constexpr (FamilyType::isUsingMiMemFence) {
|
if constexpr (FamilyType::isUsingMiMemFence) {
|
||||||
@@ -282,6 +284,7 @@ HWTEST2_F(AppendMemoryCopy, givenSyncImmediateCommandListWhenAppendingMemoryCopy
|
|||||||
DebugManagerStateRestore restore;
|
DebugManagerStateRestore restore;
|
||||||
NEO::DebugManager.flags.EnableFlushTaskSubmission.set(1);
|
NEO::DebugManager.flags.EnableFlushTaskSubmission.set(1);
|
||||||
auto ultCsr = static_cast<UltCommandStreamReceiver<FamilyType> *>(device->getNEODevice()->getDefaultEngine().commandStreamReceiver);
|
auto ultCsr = static_cast<UltCommandStreamReceiver<FamilyType> *>(device->getNEODevice()->getDefaultEngine().commandStreamReceiver);
|
||||||
|
ultCsr->storeMakeResidentAllocations = true;
|
||||||
|
|
||||||
auto cmdQueue = std::make_unique<Mock<CommandQueue>>();
|
auto cmdQueue = std::make_unique<Mock<CommandQueue>>();
|
||||||
cmdQueue->csr = ultCsr;
|
cmdQueue->csr = ultCsr;
|
||||||
@@ -313,6 +316,7 @@ HWTEST2_F(AppendMemoryCopy, givenSyncImmediateCommandListWhenAppendingMemoryCopy
|
|||||||
ASSERT_EQ(ZE_RESULT_SUCCESS, commandList->appendMemoryCopy(dstPtr, srcPtr, 8, nullptr, 0, nullptr));
|
ASSERT_EQ(ZE_RESULT_SUCCESS, commandList->appendMemoryCopy(dstPtr, srcPtr, 8, nullptr, 0, nullptr));
|
||||||
|
|
||||||
EXPECT_EQ(expectedSize, ultCsr->getCS(0).getUsed());
|
EXPECT_EQ(expectedSize, ultCsr->getCS(0).getUsed());
|
||||||
|
EXPECT_TRUE(ultCsr->isMadeResident(commandList->commandContainer.getCommandStream()->getGraphicsAllocation()));
|
||||||
|
|
||||||
size_t offset = 0;
|
size_t offset = 0;
|
||||||
if constexpr (FamilyType::isUsingMiMemFence) {
|
if constexpr (FamilyType::isUsingMiMemFence) {
|
||||||
|
|||||||
@@ -210,6 +210,8 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushBcsTask(LinearStream &c
|
|||||||
makeResident(*getTagAllocation());
|
makeResident(*getTagAllocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
makeResident(*commandStreamTask.getGraphicsAllocation());
|
||||||
|
|
||||||
bool submitCSR = (commandStreamStartCSR != commandStreamCSR.getUsed());
|
bool submitCSR = (commandStreamStartCSR != commandStreamCSR.getUsed());
|
||||||
void *bbEndLocation = nullptr;
|
void *bbEndLocation = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user