refactor: add heaplessStateInitialized flag

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-05-15 11:50:34 +00:00
committed by Compute-Runtime-Automation
parent 4ddf0a01af
commit e9b81037a9
3 changed files with 4 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
using BaseClass::CommandStreamReceiver::gpuHangCheckPeriod;
using BaseClass::CommandStreamReceiver::gsbaFor32BitProgrammed;
using BaseClass::CommandStreamReceiver::heaplessModeEnabled;
using BaseClass::CommandStreamReceiver::heaplessStateInitialized;
using BaseClass::CommandStreamReceiver::immWritePostSyncWriteOffset;
using BaseClass::CommandStreamReceiver::initDirectSubmission;
using BaseClass::CommandStreamReceiver::internalAllocationStorage;

View File

@@ -5255,6 +5255,8 @@ HWTEST_F(CommandStreamReceiverHwHeaplessTest, whenHeaplessCommandStreamReceiverF
EXPECT_ANY_THROW(csr->getRequiredCmdStreamHeaplessSizeAligned(csr->recordedDispatchFlags, *pDevice));
EXPECT_ANY_THROW(csr->flushImmediateTaskStateless(commandStream, 0, csr->recordedImmediateDispatchFlags, *pDevice));
EXPECT_ANY_THROW(csr->handleImmediateFlushStatelessAllocationsResidency(0, commandStream));
EXPECT_FALSE(csr->heaplessStateInitialized);
}
HWTEST2_F(CommandStreamReceiverHwTest,