mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: add getter to in order exec info class
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
016529ac12
commit
3b9e1e4b32
@@ -2521,7 +2521,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
|
|||||||
|
|
||||||
bool indirectMode = false;
|
bool indirectMode = false;
|
||||||
|
|
||||||
size_t inOrderPatchListIndex = 0;
|
size_t inOrderPatchListIndex = std::numeric_limits<size_t>::max();
|
||||||
if (isQwordInOrderCounter()) {
|
if (isQwordInOrderCounter()) {
|
||||||
indirectMode = true;
|
indirectMode = true;
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ class InOrderExecInfo : public NEO::NonCopyableClass {
|
|||||||
uint32_t getAllocationOffset() const { return allocationOffset; }
|
uint32_t getAllocationOffset() const { return allocationOffset; }
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
bool isExternalMemoryExecInfo() const { return deviceCounterNode == nullptr; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
NEO::MemoryManager &memoryManager;
|
NEO::MemoryManager &memoryManager;
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingStandaloneInO
|
|||||||
EXPECT_EQ(gpuAddress, inOrderExecInfo->getBaseDeviceAddress());
|
EXPECT_EQ(gpuAddress, inOrderExecInfo->getBaseDeviceAddress());
|
||||||
EXPECT_EQ(nullptr, inOrderExecInfo->getDeviceCounterAllocation());
|
EXPECT_EQ(nullptr, inOrderExecInfo->getDeviceCounterAllocation());
|
||||||
EXPECT_EQ(nullptr, inOrderExecInfo->getHostCounterAllocation());
|
EXPECT_EQ(nullptr, inOrderExecInfo->getHostCounterAllocation());
|
||||||
|
EXPECT_TRUE(inOrderExecInfo->isExternalMemoryExecInfo());
|
||||||
|
|
||||||
inOrderExecInfo->reset();
|
inOrderExecInfo->reset();
|
||||||
|
|
||||||
@@ -100,6 +101,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingInOrderExecIn
|
|||||||
EXPECT_EQ(2u, inOrderExecInfo->getNumDevicePartitionsToWait());
|
EXPECT_EQ(2u, inOrderExecInfo->getNumDevicePartitionsToWait());
|
||||||
EXPECT_EQ(2u, inOrderExecInfo->getNumHostPartitionsToWait());
|
EXPECT_EQ(2u, inOrderExecInfo->getNumHostPartitionsToWait());
|
||||||
EXPECT_EQ(0u, InOrderPatchCommandHelpers::getAppendCounterValue(*inOrderExecInfo));
|
EXPECT_EQ(0u, InOrderPatchCommandHelpers::getAppendCounterValue(*inOrderExecInfo));
|
||||||
|
EXPECT_FALSE(inOrderExecInfo->isExternalMemoryExecInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user