Add selector for copy engines

Change-Id: I28b11aead8e554b7299ff7f504751847068a2edf
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4320
This commit is contained in:
Kamil Kopryk
2020-02-24 18:25:42 +01:00
parent ce8e5d18d7
commit 71468dd11d
6 changed files with 15 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ CommandQueue::CommandQueue(Context *context, ClDevice *device, const cl_queue_pr
}
auto hwInfo = device->getHardwareInfo();
if (hwInfo.capabilityTable.blitterOperationsSupported) {
bcsEngine = &device->getDeviceById(0)->getEngine(EngineHelpers::getBcsEngineType(hwInfo), false);
auto &selectorCopyEngine = device->getDeviceById(0)->getSelectorCopyEngine();
bcsEngine = &device->getDeviceById(0)->getEngine(EngineHelpers::getBcsEngineType(hwInfo, selectorCopyEngine), false);
}
}

View File

@@ -102,6 +102,7 @@ const DeviceInfo &ClDevice::getDeviceInfo() const { return device.getDeviceInfo(
EngineControl &ClDevice::getEngine(aub_stream::EngineType engineType, bool lowPriority) { return device.getEngine(engineType, lowPriority); }
EngineControl &ClDevice::getDefaultEngine() { return device.getDefaultEngine(); }
EngineControl &ClDevice::getInternalEngine() { return device.getInternalEngine(); }
std::atomic<uint32_t> &ClDevice::getSelectorCopyEngine() { return device.getSelectorCopyEngine(); }
MemoryManager *ClDevice::getMemoryManager() const { return device.getMemoryManager(); }
GmmHelper *ClDevice::getGmmHelper() const { return device.getGmmHelper(); }
GmmClientContext *ClDevice::getGmmClientContext() const { return device.getGmmClientContext(); }

View File

@@ -61,6 +61,7 @@ class ClDevice : public BaseObject<_cl_device_id> {
EngineControl &getEngine(aub_stream::EngineType engineType, bool lowPriority);
EngineControl &getDefaultEngine();
EngineControl &getInternalEngine();
std::atomic<uint32_t> &getSelectorCopyEngine();
MemoryManager *getMemoryManager() const;
GmmHelper *getGmmHelper() const;
GmmClientContext *getGmmClientContext() const;