Skip to content

Commit f857d93

Browse files
test: Calculate InlineDataSize based on compute walker
Related-To: NEO-12864 Signed-off-by: Illia Vysochyn <[email protected]>
1 parent 74bf4bf commit f857d93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opencl/test/unit_test/command_queue/dispatch_walker_tests_xehp_and_later.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, givenPassInlin
732732
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
733733
auto &commandStream = cmdQ->getCS(1024);
734734
auto usedBeforeCS = commandStream.getUsed();
735-
constexpr auto inlineDataSize = COMPUTE_WALKER::getInlineDataSize();
735+
auto inlineDataSize = UnitTestHelper<FamilyType>::getInlineDataSize(cmdQ->heaplessModeEnabled);
736736

737737
auto &kd = kernel->kernelInfo.kernelDescriptor;
738738
kd.kernelAttributes.flags.passInlineData = true;
@@ -925,7 +925,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, givenKernelWit
925925
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
926926

927927
auto &kd = kernel->kernelInfo.kernelDescriptor;
928-
constexpr auto inlineDataSize = COMPUTE_WALKER::getInlineDataSize();
928+
auto inlineDataSize = UnitTestHelper<FamilyType>::getInlineDataSize(cmdQ->heaplessModeEnabled);
929929
kd.kernelAttributes.flags.passInlineData = true;
930930
kd.kernelAttributes.numLocalIdChannels = 0;
931931

@@ -1068,7 +1068,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, givenPassInlin
10681068
debugManager.flags.EnableHwGenerationLocalIds.set(1);
10691069

10701070
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
1071-
constexpr auto inlineDataSize = COMPUTE_WALKER::getInlineDataSize();
1071+
auto inlineDataSize = UnitTestHelper<FamilyType>::getInlineDataSize(cmdQ->heaplessModeEnabled);
10721072
auto &kd = kernel->kernelInfo.kernelDescriptor;
10731073
kd.entryPoints.skipPerThreadDataLoad = 128;
10741074
kd.kernelAttributes.flags.passInlineData = true;
@@ -1135,7 +1135,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTest, givenPassInlin
11351135
auto cmdQ = std::make_unique<MockCommandQueueHw<FamilyType>>(context.get(), device.get(), nullptr);
11361136

11371137
auto &kd = kernel->kernelInfo.kernelDescriptor;
1138-
constexpr auto inlineDataSize = COMPUTE_WALKER::getInlineDataSize();
1138+
auto inlineDataSize = UnitTestHelper<FamilyType>::getInlineDataSize(cmdQ->heaplessModeEnabled);
11391139
kd.entryPoints.skipPerThreadDataLoad = 128;
11401140
kd.kernelAttributes.flags.passInlineData = true;
11411141
kd.kernelAttributes.localId[0] = 0;

0 commit comments

Comments
 (0)