Skip to content

Commit 125848e

Browse files
fix: use internal engine for checking peer access
Signed-off-by: Maciej Plewka <[email protected]> Related-To: NEO-9721
1 parent 27fbdde commit 125848e

File tree

56 files changed

+429
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+429
-291
lines changed

level_zero/core/source/cmdlist/cmdlist.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ struct CommandList : _ze_command_list_handle_t {
186186
virtual ze_result_t hostSynchronize(uint64_t timeout) = 0;
187187

188188
static CommandList *create(uint32_t productFamily, Device *device, NEO::EngineGroupType engineGroupType,
189-
ze_command_list_flags_t flags, ze_result_t &resultValue);
189+
ze_command_list_flags_t flags, ze_result_t &resultValue,
190+
bool internalUsage);
190191
static CommandList *createImmediate(uint32_t productFamily, Device *device,
191192
const ze_command_queue_desc_t *desc,
192193
bool internalUsage, NEO::EngineGroupType engineGroupType,

level_zero/core/source/cmdlist/cmdlist_imp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ ze_result_t CommandListImp::appendMetricQueryEnd(zet_metric_query_handle_t hMetr
102102
}
103103

104104
CommandList *CommandList::create(uint32_t productFamily, Device *device, NEO::EngineGroupType engineGroupType,
105-
ze_command_list_flags_t flags, ze_result_t &returnValue) {
105+
ze_command_list_flags_t flags, ze_result_t &returnValue,
106+
bool internalUsage) {
106107
CommandListAllocatorFn allocator = nullptr;
107108
if (productFamily < IGFX_MAX_PRODUCT) {
108109
allocator = commandListFactory[productFamily];
@@ -113,6 +114,7 @@ CommandList *CommandList::create(uint32_t productFamily, Device *device, NEO::En
113114

114115
if (allocator) {
115116
commandList = static_cast<CommandListImp *>((*allocator)(CommandList::defaultNumIddsPerBlock));
117+
commandList->internalUsage = internalUsage;
116118
returnValue = commandList->initialize(device, engineGroupType, flags);
117119
if (returnValue != ZE_RESULT_SUCCESS) {
118120
commandList->destroy();
@@ -147,9 +149,7 @@ CommandList *CommandList::createImmediate(uint32_t productFamily, Device *device
147149
} else {
148150
auto internalEngine = deviceImp->getActiveDevice()->getInternalEngine();
149151
csr = internalEngine.commandStreamReceiver;
150-
auto internalEngineType = internalEngine.getEngineType();
151-
auto internalEngineUsage = internalEngine.getEngineUsage();
152-
engineGroupType = gfxCoreHelper.getEngineGroupType(internalEngineType, internalEngineUsage, hwInfo);
152+
engineGroupType = deviceImp->getInternalEngineGroupType();
153153
}
154154
} else {
155155
returnValue = device->getCsrForOrdinalAndIndex(&csr, desc->ordinal, desc->index);

level_zero/core/source/cmdqueue/cmdqueue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#pragma once
99
#include "shared/source/command_stream/task_count_helper.h"
10+
#include "shared/source/helpers/definitions/engine_group_types.h"
1011
#include "shared/source/helpers/heap_base_address_model.h"
1112

1213
#include <level_zero/ze_api.h>

level_zero/core/source/device/device_imp.cpp

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "shared/source/helpers/constants.h"
2424
#include "shared/source/helpers/engine_node_helper.h"
2525
#include "shared/source/helpers/gfx_core_helper.h"
26+
#include "shared/source/helpers/hw_info.h"
2627
#include "shared/source/helpers/ray_tracing_helper.h"
2728
#include "shared/source/helpers/string.h"
2829
#include "shared/source/helpers/topology_map.h"
@@ -96,6 +97,7 @@ ze_result_t DeviceImp::getStatus() {
9697
ze_result_t DeviceImp::submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_t *value) {
9798
DeviceImp *pPeerDevice = static_cast<DeviceImp *>(Device::fromHandle(hPeerDevice));
9899
uint32_t peerRootDeviceIndex = pPeerDevice->getNEODevice()->getRootDeviceIndex();
100+
*value = false;
99101

100102
ze_command_list_handle_t commandList = nullptr;
101103
ze_command_list_desc_t listDescriptor = {};
@@ -114,8 +116,10 @@ ze_result_t DeviceImp::submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_
114116
queueDescriptor.ordinal = 0;
115117
queueDescriptor.index = 0;
116118

117-
this->createCommandList(&listDescriptor, &commandList);
118-
this->createCommandQueue(&queueDescriptor, &commandQueue);
119+
auto ret = this->createInternalCommandList(&listDescriptor, &commandList);
120+
UNRECOVERABLE_IF(ret != ZE_RESULT_SUCCESS);
121+
ret = this->createInternalCommandQueue(&queueDescriptor, &commandQueue);
122+
UNRECOVERABLE_IF(ret != ZE_RESULT_SUCCESS);
119123

120124
auto driverHandle = this->getDriverHandle();
121125
DriverHandleImp *driverHandleImp = static_cast<DriverHandleImp *>(driverHandle);
@@ -144,7 +148,7 @@ ze_result_t DeviceImp::submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_
144148
contextImp->allocDeviceMem(this->toHandle(), &deviceDesc, 8, 1, &memory);
145149
contextImp->allocDeviceMem(hPeerDevice, &peerDeviceDesc, 8, 1, &peerMemory);
146150

147-
auto ret = L0::CommandList::fromHandle(commandList)->appendMemoryCopy(peerMemory, memory, 8, nullptr, 0, nullptr, false, false);
151+
ret = L0::CommandList::fromHandle(commandList)->appendMemoryCopy(peerMemory, memory, 8, nullptr, 0, nullptr, false, false);
148152
L0::CommandList::fromHandle(commandList)->close();
149153

150154
if (ret == ZE_RESULT_SUCCESS) {
@@ -163,9 +167,9 @@ ze_result_t DeviceImp::submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_
163167
contextImp->freeMem(peerMemory);
164168
contextImp->freeMem(memory);
165169

166-
L0::Context::fromHandle(context)->destroy();
167-
L0::CommandQueue::fromHandle(commandQueue)->destroy();
168170
L0::CommandList::fromHandle(commandList)->destroy();
171+
L0::CommandQueue::fromHandle(commandQueue)->destroy();
172+
L0::Context::fromHandle(context)->destroy();
169173

170174
if (ret == ZE_RESULT_ERROR_DEVICE_LOST) {
171175
return ZE_RESULT_ERROR_DEVICE_LOST;
@@ -221,7 +225,19 @@ ze_result_t DeviceImp::createCommandList(const ze_command_list_desc_t *desc,
221225
auto productFamily = neoDevice->getHardwareInfo().platform.eProductFamily;
222226
ze_result_t returnValue = ZE_RESULT_SUCCESS;
223227
auto createCommandList = getCmdListCreateFunc(desc);
224-
*commandList = createCommandList(productFamily, this, engineGroupType, desc->flags, returnValue);
228+
*commandList = createCommandList(productFamily, this, engineGroupType, desc->flags, returnValue, false);
229+
230+
return returnValue;
231+
}
232+
233+
ze_result_t DeviceImp::createInternalCommandList(const ze_command_list_desc_t *desc,
234+
ze_command_list_handle_t *commandList) {
235+
NEO::EngineGroupType engineGroupType = getInternalEngineGroupType();
236+
237+
auto productFamily = neoDevice->getHardwareInfo().platform.eProductFamily;
238+
ze_result_t returnValue = ZE_RESULT_SUCCESS;
239+
auto createCommandList = getCmdListCreateFunc(desc);
240+
*commandList = createCommandList(productFamily, this, engineGroupType, desc->flags, returnValue, true);
225241

226242
return returnValue;
227243
}
@@ -300,7 +316,22 @@ ze_result_t DeviceImp::createCommandQueue(const ze_command_queue_desc_t *desc,
300316

301317
ze_result_t returnValue = ZE_RESULT_SUCCESS;
302318
*commandQueue = CommandQueue::create(platform.eProductFamily, this, csr, &commandQueueDesc, isCopyOnly, false, false, returnValue);
319+
return returnValue;
320+
}
321+
322+
ze_result_t DeviceImp::createInternalCommandQueue(const ze_command_queue_desc_t *desc,
323+
ze_command_queue_handle_t *commandQueue) {
324+
auto &platform = neoDevice->getHardwareInfo().platform;
325+
326+
auto internalEngine = this->getActiveDevice()->getInternalEngine();
327+
auto csr = internalEngine.commandStreamReceiver;
328+
auto engineGroupType = getInternalEngineGroupType();
329+
auto isCopyOnly = NEO::EngineHelper::isCopyOnlyEngineType(engineGroupType);
303330

331+
UNRECOVERABLE_IF(csr == nullptr);
332+
333+
ze_result_t returnValue = ZE_RESULT_SUCCESS;
334+
*commandQueue = CommandQueue::create(platform.eProductFamily, this, csr, desc, isCopyOnly, true, false, returnValue);
304335
return returnValue;
305336
}
306337

@@ -479,6 +510,14 @@ ze_result_t DeviceImp::getComputeProperties(ze_device_compute_properties_t *pCom
479510
return ZE_RESULT_SUCCESS;
480511
}
481512

513+
NEO::EngineGroupType DeviceImp::getInternalEngineGroupType() {
514+
auto &gfxCoreHelper = neoDevice->getGfxCoreHelper();
515+
auto internalEngine = this->getActiveDevice()->getInternalEngine();
516+
auto internalEngineType = internalEngine.getEngineType();
517+
auto internalEngineUsage = internalEngine.getEngineUsage();
518+
return gfxCoreHelper.getEngineGroupType(internalEngineType, internalEngineUsage, getHwInfo());
519+
}
520+
482521
void DeviceImp::getP2PPropertiesDirectFabricConnection(DeviceImp *peerDeviceImp,
483522
ze_device_p2p_bandwidth_exp_properties_t *bandwidthPropertiesDesc) {
484523

level_zero/core/source/device/device_imp.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ struct DeviceImp : public Device, NEO::NonCopyableOrMovableClass {
3838
ze_result_t canAccessPeer(ze_device_handle_t hPeerDevice, ze_bool_t *value) override;
3939
ze_result_t createCommandList(const ze_command_list_desc_t *desc,
4040
ze_command_list_handle_t *commandList) override;
41+
MOCKABLE_VIRTUAL ze_result_t createInternalCommandList(const ze_command_list_desc_t *desc,
42+
ze_command_list_handle_t *commandList);
4143
ze_result_t createCommandListImmediate(const ze_command_queue_desc_t *desc,
4244
ze_command_list_handle_t *phCommandList) override;
4345
ze_result_t createCommandQueue(const ze_command_queue_desc_t *desc,
4446
ze_command_queue_handle_t *commandQueue) override;
47+
MOCKABLE_VIRTUAL ze_result_t createInternalCommandQueue(const ze_command_queue_desc_t *desc,
48+
ze_command_queue_handle_t *commandQueue);
4549
ze_result_t createImage(const ze_image_desc_t *desc, ze_image_handle_t *phImage) override;
4650
ze_result_t createModule(const ze_module_desc_t *desc, ze_module_handle_t *module,
4751
ze_module_build_log_handle_t *buildLog, ModuleType type) override;
@@ -153,7 +157,7 @@ struct DeviceImp : public Device, NEO::NonCopyableOrMovableClass {
153157
bool isQueueGroupOrdinalValid(uint32_t ordinal);
154158
void setFabricVertex(FabricVertex *inFabricVertex) { fabricVertex = inFabricVertex; }
155159

156-
using CmdListCreateFunPtrT = L0::CommandList *(*)(uint32_t, Device *, NEO::EngineGroupType, ze_command_list_flags_t, ze_result_t &);
160+
using CmdListCreateFunPtrT = L0::CommandList *(*)(uint32_t, Device *, NEO::EngineGroupType, ze_command_list_flags_t, ze_result_t &, bool);
157161
CmdListCreateFunPtrT getCmdListCreateFunc(const ze_command_list_desc_t *desc);
158162
ze_result_t getFabricVertex(ze_fabric_vertex_handle_t *phVertex) override;
159163

@@ -162,6 +166,7 @@ struct DeviceImp : public Device, NEO::NonCopyableOrMovableClass {
162166
uint32_t getEventMaxPacketCount() const override;
163167
uint32_t getEventMaxKernelCount() const override;
164168
uint32_t queryDeviceNodeMask();
169+
NEO::EngineGroupType getInternalEngineGroupType();
165170

166171
protected:
167172
void adjustCommandQueueDesc(uint32_t &ordinal, uint32_t &index);

level_zero/core/test/aub_tests/fixtures/aub_fixture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void AUBFixtureL0::setUp(const NEO::HardwareInfo *hardwareInfo, bool debuggingEn
7777
context = static_cast<ContextImp *>(Context::fromHandle(hContext));
7878

7979
ze_result_t returnValue;
80-
commandList.reset(ult::CommandList::whiteboxCast(CommandList::create(hwInfo.platform.eProductFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue)));
80+
commandList.reset(ult::CommandList::whiteboxCast(CommandList::create(hwInfo.platform.eProductFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false)));
8181

8282
returnValue = ZE_RESULT_ERROR_UNINITIALIZED;
8383
ze_command_queue_desc_t queueDesc = {};

level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CommandListFixture ::~CommandListFixture() = default;
3434
void CommandListFixture::setUp() {
3535
DeviceFixture::setUp();
3636
ze_result_t returnValue;
37-
commandList.reset(CommandList::whiteboxCast(CommandList::create(device->getHwInfo().platform.eProductFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue)));
37+
commandList.reset(CommandList::whiteboxCast(CommandList::create(device->getHwInfo().platform.eProductFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false)));
3838

3939
ze_event_pool_desc_t eventPoolDesc = {ZE_STRUCTURE_TYPE_EVENT_POOL_DESC};
4040
eventPoolDesc.flags = ZE_EVENT_POOL_FLAG_HOST_VISIBLE;
@@ -72,7 +72,7 @@ void MultiTileCommandListFixtureInit::setUpParams(bool createImmediate, bool cre
7272
NEO::EngineGroupType cmdListEngineType = createCopy ? NEO::EngineGroupType::copy : NEO::EngineGroupType::renderCompute;
7373

7474
if (!createImmediate) {
75-
commandList.reset(CommandList::whiteboxCast(CommandList::create(device->getHwInfo().platform.eProductFamily, device, cmdListEngineType, 0u, returnValue)));
75+
commandList.reset(CommandList::whiteboxCast(CommandList::create(device->getHwInfo().platform.eProductFamily, device, cmdListEngineType, 0u, returnValue, false)));
7676
} else {
7777
const ze_command_queue_desc_t desc = {};
7878
commandList.reset(CommandList::whiteboxCast(CommandList::createImmediate(device->getHwInfo().platform.eProductFamily, device, &desc, createInternal, cmdListEngineType, returnValue)));
@@ -112,7 +112,7 @@ void ModuleMutableCommandListFixture::setUpImpl() {
112112
auto &gfxCoreHelper = device->getGfxCoreHelper();
113113
engineGroupType = gfxCoreHelper.getEngineGroupType(neoDevice->getDefaultEngine().getEngineType(), neoDevice->getDefaultEngine().getEngineUsage(), device->getHwInfo());
114114

115-
commandList.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue)));
115+
commandList.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue, false)));
116116
commandListImmediate.reset(CommandList::whiteboxCast(CommandList::createImmediate(productFamily, device, &queueDesc, false, engineGroupType, returnValue)));
117117
commandListImmediate->isFlushTaskSubmissionEnabled = true;
118118

@@ -161,7 +161,7 @@ void CmdListPipelineSelectStateFixture::setUp() {
161161
ModuleMutableCommandListFixture::setUp();
162162

163163
auto result = ZE_RESULT_SUCCESS;
164-
commandList2.reset(CommandList::whiteboxCast(CommandList::create(productFamily, this->device, this->engineGroupType, 0u, result)));
164+
commandList2.reset(CommandList::whiteboxCast(CommandList::create(productFamily, this->device, this->engineGroupType, 0u, result, false)));
165165
ASSERT_EQ(ZE_RESULT_SUCCESS, result);
166166
}
167167

@@ -225,7 +225,7 @@ void CommandListGlobalHeapsFixtureInit::setUpParams(int32_t globalHeapMode) {
225225
debugManager.flags.SelectCmdListHeapAddressModel.set(static_cast<int32_t>(NEO::HeapAddressModel::privateHeaps));
226226

227227
ze_result_t returnValue;
228-
commandListPrivateHeap.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue)));
228+
commandListPrivateHeap.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue, false)));
229229

230230
debugManager.flags.SelectCmdListHeapAddressModel.set(globalHeapMode);
231231
}
@@ -449,7 +449,7 @@ void CommandListAppendLaunchRayTracingKernelFixture::setUp() {
449449
ASSERT_NE(nullptr, buffer2);
450450

451451
ze_result_t returnValue;
452-
commandList = CommandList::whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
452+
commandList = CommandList::whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
453453
ASSERT_NE(commandList->getCmdContainer().getCommandStream(), nullptr);
454454

455455
dispatchKernelArguments.groupCountX = 1u;
@@ -482,8 +482,8 @@ void PrimaryBatchBufferPreamblelessCmdListFixture::setUp() {
482482
PrimaryBatchBufferCmdListFixture::setUp();
483483

484484
ze_result_t returnValue;
485-
commandList2.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue)));
486-
commandList3.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue)));
485+
commandList2.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue, false)));
486+
commandList3.reset(CommandList::whiteboxCast(CommandList::create(productFamily, device, engineGroupType, 0u, returnValue, false)));
487487
}
488488

489489
void PrimaryBatchBufferPreamblelessCmdListFixture::tearDown() {
@@ -567,7 +567,7 @@ void CommandQueueThreadArbitrationPolicyFixture::setUp() {
567567
returnValue));
568568
ASSERT_NE(nullptr, commandQueue);
569569

570-
commandList = CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue);
570+
commandList = CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false);
571571
ASSERT_NE(nullptr, commandList);
572572

573573
commandList->close();

level_zero/core/test/unit_tests/fixtures/multi_tile_fixture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void MultiTileCommandListAppendLaunchKernelFixture::setUp() {
3939
contextImp = static_cast<ContextImp *>(Context::fromHandle(hContext));
4040

4141
ze_result_t returnValue;
42-
commandList = CommandList::whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
42+
commandList = CommandList::whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
4343
EXPECT_EQ(ZE_RESULT_SUCCESS, returnValue);
4444
}
4545

level_zero/core/test/unit_tests/gen9/test_cmdlist_append_launch_kernel_gen9.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenKernelWithSLMThenL3IsProgrammedWit
2222
using MI_LOAD_REGISTER_IMM = typename FamilyType::MI_LOAD_REGISTER_IMM;
2323
createKernel();
2424
ze_result_t returnValue;
25-
std::unique_ptr<L0::CommandList> commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
25+
std::unique_ptr<L0::CommandList> commandList(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
2626
ze_group_count_t groupCount{1, 1, 1};
2727

2828
EXPECT_LE(0u, kernel->kernelImmData->getDescriptor().kernelAttributes.slmInlineSize);

level_zero/core/test/unit_tests/gen9/test_cmdlist_create_gen9.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CommandListCreateGen9 : public DeviceFixture, public testing::Test {
9292

9393
GEN9TEST_F(CommandListCreateGen9, WhenGettingCommandListPreemptionModeThenMatchesDevicePreemptionMode) {
9494
ze_result_t returnValue;
95-
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
95+
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
9696

9797
auto result = commandList->close();
9898
ASSERT_EQ(ZE_RESULT_SUCCESS, result);
@@ -113,7 +113,7 @@ GEN9TEST_F(CommandListCreateGen9, GivenDisabledMidThreadPreemptionWhenLaunchingK
113113
initializeKernel(kernelThreadGroup, kernelInfoThreadGroupData, device);
114114

115115
ze_result_t returnValue;
116-
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
116+
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
117117
EXPECT_EQ(NEO::PreemptionMode::MidThread, commandList->getCommandListPreemptionMode());
118118

119119
CmdListKernelLaunchParams launchParams = {};
@@ -143,7 +143,7 @@ GEN9TEST_F(CommandListCreateGen9, GivenUsesFencesForReadWriteImagesWhenLaunching
143143
initializeKernel(kernelMidBatch, kernelInfoMidBatchData, device);
144144

145145
ze_result_t returnValue;
146-
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
146+
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
147147
EXPECT_EQ(NEO::PreemptionMode::MidThread, commandList->getCommandListPreemptionMode());
148148

149149
CmdListKernelLaunchParams launchParams = {};
@@ -178,7 +178,7 @@ GEN9TEST_F(CommandListCreateGen9, WhenCommandListHasLowerPreemptionLevelThenDoNo
178178
initializeKernel(kernelMidThread, kernelInfoMidThreadData, device);
179179

180180
ze_result_t returnValue;
181-
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue));
181+
auto commandList = whiteboxCast(CommandList::create(productFamily, device, NEO::EngineGroupType::renderCompute, 0u, returnValue, false));
182182
EXPECT_EQ(NEO::PreemptionMode::MidThread, commandList->getCommandListPreemptionMode());
183183

184184
CmdListKernelLaunchParams launchParams = {};

0 commit comments

Comments
 (0)