mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user