mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move aub center and command stream receivers to root device environment
resize root device environments to 1 by default Related-To: NEO-3691, NEO-3857 Change-Id: Idf3d61e84f8265f30381c18216632d0ffb2a16de Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
eccb9f044d
commit
d408b82a19
@@ -146,12 +146,10 @@ bool Platform::initialize() {
|
||||
this->platformInfo.reset(new PlatformInfo);
|
||||
|
||||
this->devices.resize(numDevicesReturned);
|
||||
auto deviceIndex = 0u;
|
||||
for (uint32_t deviceOrdinal = 0; deviceOrdinal < numDevicesReturned; ++deviceOrdinal) {
|
||||
auto pDevice = Device::create<RootDevice>(executionEnvironment, deviceIndex++);
|
||||
auto pDevice = Device::create<RootDevice>(executionEnvironment, deviceOrdinal);
|
||||
DEBUG_BREAK_IF(!pDevice);
|
||||
if (pDevice) {
|
||||
deviceIndex += pDevice->getNumSubDevices();
|
||||
this->devices[deviceOrdinal] = pDevice;
|
||||
|
||||
this->platformInfo->extensions = pDevice->getDeviceInfo().deviceExtensions;
|
||||
|
||||
Reference in New Issue
Block a user