Enable gem close worker on direct submission

Related-To: NEO-5112

Change-Id: I1b6950d0308d98cca09051d6fea46d51c10d2a6a
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2020-09-22 12:42:19 +02:00
committed by sys_ocldev
parent 03c8bbf054
commit d20e3af187
4 changed files with 1 additions and 16 deletions

View File

@@ -6,7 +6,6 @@
*/
#include "shared/source/command_stream/device_command_stream.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
#include "opencl/source/os_interface/linux/drm_command_stream.h"
@@ -18,8 +17,7 @@ CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withA
if (withAubDump) {
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
} else {
auto gemMode = DebugManager.flags.EnableDirectSubmission.get() == 1 ? gemCloseWorkerMode::gemCloseWorkerInactive : gemCloseWorkerMode::gemCloseWorkerActive;
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex, gemMode);
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
}
};
} // namespace NEO