mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Make sure sip kernel is initialized for aub tests
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8482eb6a5f
commit
1a34586dd4
@@ -1431,6 +1431,9 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTestDynamicPartition
|
||||
size_t gws[] = {128, 1, 1};
|
||||
size_t lws[] = {8, 1, 1};
|
||||
auto &commandStreamReceiver = cmdQ->getUltCommandStreamReceiver();
|
||||
if (device->getPreemptionMode() == PreemptionMode::MidThread || device->isDebuggerActive()) {
|
||||
commandStreamReceiver.createPreemptionAllocation();
|
||||
}
|
||||
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
|
||||
cmdQ->enqueueKernel(kernel->mockKernel, 1, nullptr, gws, lws, 0, nullptr, nullptr);
|
||||
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
|
||||
@@ -1464,6 +1467,9 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, XeHPAndLaterDispatchWalkerBasicTestStaticPartition,
|
||||
size_t gws[] = {128, 1, 1};
|
||||
size_t lws[] = {8, 1, 1};
|
||||
auto &commandStreamReceiver = cmdQ->getUltCommandStreamReceiver();
|
||||
if (device->getPreemptionMode() == PreemptionMode::MidThread || device->isDebuggerActive()) {
|
||||
commandStreamReceiver.createPreemptionAllocation();
|
||||
}
|
||||
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
|
||||
cmdQ->enqueueKernel(kernel->mockKernel, 1, nullptr, gws, lws, 0, nullptr, nullptr);
|
||||
EXPECT_EQ(1u, commandStreamReceiver.activePartitions);
|
||||
|
||||
@@ -44,6 +44,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, EnqueueWithWalkerPartitionTests, givenCsrWithSpecif
|
||||
|
||||
MockCommandQueueHw<FamilyType> commandQueue(context.get(), rootDevice.get(), nullptr);
|
||||
commandQueue.gpgpuEngine = &engineControlForFusedQueue;
|
||||
rootDevice->setPreemptionMode(PreemptionMode::Disabled);
|
||||
MockKernelWithInternals kernel(*rootDevice, context.get());
|
||||
|
||||
size_t offset[3] = {0, 0, 0};
|
||||
|
||||
Reference in New Issue
Block a user