mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
sys_ocldev
parent
42858acb32
commit
686f885e13
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user