mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Update sub device internal ref counts
Change-Id: I82eea99bbb3d1edc32d09c0b703dee30b62f6b76 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
6d4832fe24
commit
f2c11eb870
@@ -15,6 +15,13 @@ SubDevice::SubDevice(ExecutionEnvironment *executionEnvironment, uint32_t subDev
|
||||
: Device(executionEnvironment), subDeviceIndex(subDeviceIndex), rootDevice(rootDevice) {
|
||||
}
|
||||
|
||||
void SubDevice::incRefInternal() {
|
||||
rootDevice.incRefInternal();
|
||||
}
|
||||
unique_ptr_if_unused<Device> SubDevice::decRefInternal() {
|
||||
return rootDevice.decRefInternal();
|
||||
}
|
||||
|
||||
DeviceBitfield SubDevice::getDeviceBitfield() const {
|
||||
DeviceBitfield deviceBitfield;
|
||||
deviceBitfield.set(subDeviceIndex);
|
||||
|
||||
Reference in New Issue
Block a user