P4 to Git Change 1590524 by gandryey@gera-lnx-rcf on 2018/08/07 17:38:31
SWDEV-160552 - [CQE OCL][DTB][BD][Perf][QR][G] Soft hang is observed with ProRender after few subtests due to base driver. - Reset the pointer to nullptr if PAL platform was destroyed Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#102 edit
This commit is contained in:
@@ -1218,12 +1218,16 @@ bool Device::init() {
|
||||
}
|
||||
|
||||
void Device::tearDown() {
|
||||
platform_->Destroy();
|
||||
delete platformObj_;
|
||||
if (platform_ != nullptr) {
|
||||
platform_->Destroy();
|
||||
delete platformObj_;
|
||||
platform_ = nullptr;
|
||||
}
|
||||
|
||||
#if !defined(WITH_LIGHTNING_COMPILER)
|
||||
if (compiler_ != nullptr) {
|
||||
aclCompilerFini(compiler_);
|
||||
compiler_ = nullptr;
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user