Remove debug breaks.

-They hit each time retain/release is called on root device, which is actually
not an error.

Change-Id: I374752f56ae6750c85ac4750eb997dc66a33d0af
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2020-01-21 07:15:38 +01:00
committed by sys_ocldev
parent 42858acb32
commit 686f885e13

View File

@@ -60,16 +60,13 @@ unsigned int ClDevice::getEnabledClVersion() const { return device.getEnabledClV
unsigned int ClDevice::getSupportedClVersion() const { return device.getSupportedClVersion(); }
void ClDevice::retainApi() {
if (!device.isReleasable()) {
DEBUG_BREAK_IF(true);
} else {
if (device.isReleasable()) {
platform()->getClDevice(device.getRootDeviceIndex())->incRefInternal();
this->incRefApi();
}
};
unique_ptr_if_unused<ClDevice> ClDevice::releaseApi() {
if (!device.isReleasable()) {
DEBUG_BREAK_IF(true);
return unique_ptr_if_unused<ClDevice>(this, false);
}
platform()->getClDevice(device.getRootDeviceIndex())->decRefInternal();