mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
fix: make sip state programing once for all level zero command queues
Related-To: NEO-7828 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
81822e3716
commit
3f7269d401
@@ -4140,6 +4140,12 @@ HWTEST2_F(CommandStreamReceiverHwTest,
|
||||
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
commandStreamReceiver.storeMakeResidentAllocations = true;
|
||||
|
||||
EXPECT_FALSE(commandStreamReceiver.getSipSentFlag());
|
||||
commandStreamReceiver.setSipSentFlag(true);
|
||||
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
|
||||
commandStreamReceiver.setSipSentFlag(false);
|
||||
EXPECT_FALSE(commandStreamReceiver.getSipSentFlag());
|
||||
|
||||
commandStreamReceiver.flushImmediateTask(commandStream, commandStream.getUsed(), immediateFlushTaskFlags, *pDevice);
|
||||
|
||||
auto sipAllocation = NEO::SipKernel::getSipKernel(*pDevice).getSipAllocation();
|
||||
@@ -4151,6 +4157,8 @@ HWTEST2_F(CommandStreamReceiverHwTest,
|
||||
auto stateSipCmd = hwParserCsr.getCommand<STATE_SIP>();
|
||||
ASSERT_NE(nullptr, stateSipCmd);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
|
||||
|
||||
size_t usedSize = commandStreamReceiver.commandStream.getUsed();
|
||||
commandStreamReceiver.flushImmediateTask(commandStream,
|
||||
commandStream.getUsed(),
|
||||
@@ -4162,5 +4170,7 @@ HWTEST2_F(CommandStreamReceiverHwTest,
|
||||
stateSipCmd = hwParserCsr.getCommand<STATE_SIP>();
|
||||
EXPECT_EQ(nullptr, stateSipCmd);
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
|
||||
|
||||
EXPECT_TRUE(commandStreamReceiver.isMadeResident(sipAllocation));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user