mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: allow using different engine types for secondary contexts
Related-To: NEO-7824 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b39e99a17a
commit
0a74d718f2
@@ -202,7 +202,7 @@ void CommandQueue::initializeGpgpu() const {
|
||||
} else {
|
||||
|
||||
if (secondaryContextsEnabled && EngineHelpers::isCcs(defaultEngineType)) {
|
||||
gpgpuEngine = device->getDevice().getSecondaryEngineCsr(0, {defaultEngineType, EngineUsage::regular});
|
||||
gpgpuEngine = device->getDevice().getSecondaryEngineCsr({defaultEngineType, EngineUsage::regular});
|
||||
}
|
||||
|
||||
if (gpgpuEngine == nullptr) {
|
||||
@@ -1227,8 +1227,7 @@ void CommandQueue::overrideEngine(aub_stream::EngineType engineType, EngineUsage
|
||||
if (multiRegularContextAllowed) {
|
||||
gpgpuEngine = &device->getDevice().getNextEngineForMultiRegularContextMode(engineType);
|
||||
} else if (secondaryContextsEnabled && EngineHelpers::isCcs(engineType)) {
|
||||
auto index = EngineHelpers::getCcsIndex(engineType);
|
||||
gpgpuEngine = device->getDevice().getSecondaryEngineCsr(index, {engineType, engineUsage});
|
||||
gpgpuEngine = device->getDevice().getSecondaryEngineCsr({engineType, engineUsage});
|
||||
} else {
|
||||
gpgpuEngine = &device->getEngine(engineType, engineUsage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user