refactor: dont use debug flag in unit tests
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
parent
8b09bb855e
commit
0f3a230a1e
|
@ -671,7 +671,6 @@ struct InOrderCmdListTests : public CommandListAppendLaunchKernel {
|
||||||
};
|
};
|
||||||
|
|
||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
NEO::DebugManager.flags.ForceInOrderImmediateCmdListExecution.set(1);
|
|
||||||
NEO::DebugManager.flags.ForcePreemptionMode.set(static_cast<int32_t>(NEO::PreemptionMode::Disabled));
|
NEO::DebugManager.flags.ForcePreemptionMode.set(static_cast<int32_t>(NEO::PreemptionMode::Disabled));
|
||||||
|
|
||||||
CommandListAppendLaunchKernel::SetUp();
|
CommandListAppendLaunchKernel::SetUp();
|
||||||
|
@ -716,6 +715,7 @@ struct InOrderCmdListTests : public CommandListAppendLaunchKernel {
|
||||||
auto csr = device->getNEODevice()->getDefaultEngine().commandStreamReceiver;
|
auto csr = device->getNEODevice()->getDefaultEngine().commandStreamReceiver;
|
||||||
|
|
||||||
ze_command_queue_desc_t desc = {};
|
ze_command_queue_desc_t desc = {};
|
||||||
|
desc.flags = ZE_COMMAND_QUEUE_FLAG_IN_ORDER;
|
||||||
|
|
||||||
mockCmdQs.emplace_back(std::make_unique<Mock<CommandQueue>>(device, csr, &desc));
|
mockCmdQs.emplace_back(std::make_unique<Mock<CommandQueue>>(device, csr, &desc));
|
||||||
|
|
||||||
|
@ -744,8 +744,7 @@ struct InOrderCmdListTests : public CommandListAppendLaunchKernel {
|
||||||
|
|
||||||
auto engineType = copyOnly ? EngineGroupType::Copy : EngineGroupType::RenderCompute;
|
auto engineType = copyOnly ? EngineGroupType::Copy : EngineGroupType::RenderCompute;
|
||||||
|
|
||||||
cmdList->initialize(device, engineType, 0u);
|
cmdList->initialize(device, engineType, ZE_COMMAND_LIST_FLAG_IN_ORDER);
|
||||||
cmdList->enableInOrderExecution();
|
|
||||||
|
|
||||||
createdCmdLists++;
|
createdCmdLists++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue