mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
test: fix WhenEnqueingKernelThenIndirectDataIsAdded test
Related-To: NEO-10641 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1bb6941bca
commit
47f89af9fe
@@ -589,7 +589,18 @@ HWTEST_F(EnqueueKernelTest, WhenEnqueingKernelThenIndirectDataIsAdded) {
|
||||
|
||||
callOneWorkItemNDRKernel();
|
||||
EXPECT_TRUE(UnitTestHelper<FamilyType>::evaluateDshUsage(dshBefore, pDSH->getUsed(), &pKernel->getKernelInfo().kernelDescriptor, rootDeviceIndex));
|
||||
EXPECT_NE(iohBefore, pIOH->getUsed());
|
||||
|
||||
auto crossThreadDatSize = this->pKernel->getCrossThreadDataSize();
|
||||
auto heaplessEnabled = pCmdQ->getHeaplessModeEnabled();
|
||||
auto inlineDataSize = UnitTestHelper<FamilyType>::getInlineDataSize(heaplessEnabled);
|
||||
bool crossThreadDataFitsInInlineData = (crossThreadDatSize <= inlineDataSize);
|
||||
|
||||
if (crossThreadDataFitsInInlineData) {
|
||||
EXPECT_EQ(iohBefore, pIOH->getUsed());
|
||||
} else {
|
||||
EXPECT_NE(iohBefore, pIOH->getUsed());
|
||||
}
|
||||
|
||||
if ((pKernel->usesBindfulAddressingForBuffers() || pKernel->getKernelInfo().kernelDescriptor.kernelAttributes.flags.usesImages) && compilerProductHelper.isStatelessToStatefulBufferOffsetSupported()) {
|
||||
EXPECT_NE(sshBefore, pSSH->getUsed());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user