mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Add Device::getParentDevice function
Change-Id: I7b75bca67dceb74624c8dd8fd8c1542437fd9393 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -48,7 +48,11 @@ Device *RootDevice::getDeviceById(uint32_t deviceId) const {
|
||||
return const_cast<RootDevice *>(this);
|
||||
}
|
||||
return subdevices[deviceId];
|
||||
};
|
||||
}
|
||||
|
||||
Device *RootDevice::getParentDevice() const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SubDevice *RootDevice::createSubDevice(uint32_t subDeviceIndex) {
|
||||
return Device::create<SubDevice>(executionEnvironment, subDeviceIndex, *this);
|
||||
|
||||
Reference in New Issue
Block a user