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


[ROCm/clr commit: 1a61f6b9e5]
Этот коммит содержится в:
foreman
2018-08-07 17:56:54 -04:00
родитель 20e1c977c9
Коммит eb836ba642
+6 -2
Просмотреть файл
@@ -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)
}