mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add debug flag for EOT WA
EOT WA requires allocating last 64KB of kernel heap and putting EOT signature at the last 16 bytes of kernel heap Related-To: NEO-7099 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
9a667308b9
commit
cf3817e058
@ -500,6 +500,25 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, WhenFlushingThenScratchAllocationI
|
||||
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(scratchAllocation));
|
||||
}
|
||||
|
||||
HWTEST_F(CommandStreamReceiverFlushTaskTests, givenAdditionalAllocationForResidencyWhenFlushingThenHandleResidency) {
|
||||
auto commandStreamReceiver = new MockCsrHw<FamilyType>(*pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield());
|
||||
pDevice->resetCommandStreamReceiver(commandStreamReceiver);
|
||||
|
||||
MockGraphicsAllocation allocation{};
|
||||
commandStreamReceiver->addAdditionalAllocationForResidency(&allocation);
|
||||
|
||||
flushTask(*commandStreamReceiver);
|
||||
|
||||
auto tagAllocation = commandStreamReceiver->getTagAllocation();
|
||||
ASSERT_NE(tagAllocation, nullptr);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver->isMadeResident(tagAllocation));
|
||||
EXPECT_TRUE(commandStreamReceiver->isMadeResident(&allocation));
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(tagAllocation));
|
||||
EXPECT_TRUE(commandStreamReceiver->isMadeNonResident(&allocation));
|
||||
}
|
||||
|
||||
HWTEST_F(CommandStreamReceiverFlushTaskTests, givenCommandStreamReceiverWhenFenceAllocationIsRequiredAndFlushTaskIsCalledThenFenceAllocationIsMadeResident) {
|
||||
RAIIHwHelperFactory<MockHwHelperWithFenceAllocation<FamilyType>> hwHelperBackup{pDevice->getHardwareInfo().platform.eRenderCoreFamily};
|
||||
|
||||
|
Reference in New Issue
Block a user