P4 to Git Change 1523990 by gandryey@gera-lnx-rcf on 2018/03/07 15:53:52

SWDEV-79445 - OCL generic changes and code clean-up
	- Keep LF code under WITH_LIQUID_FLASH, since GSL path doesn't enable LF support

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#47 edit


[ROCm/clr commit: a7d777f1fb]
This commit is contained in:
foreman
2018-03-07 15:57:50 -05:00
parent 6fdd26c27b
commit 1c02ad9a84
@@ -18,7 +18,9 @@
#include "CL/cl_dx9_media_sharing.h"
#endif //_WIN32
#ifdef WITH_LIQUID_FLASH
#include "lf.h"
#endif
namespace amd {
@@ -77,7 +79,9 @@ Context::~Context() {
std::for_each(devices_.begin(), devices_.end(), std::mem_fun(&Device::release));
#ifdef WITH_LIQUID_FLASH
lfTerminate();
#endif
}
int Context::checkProperties(const cl_context_properties* properties, Context::Info* info) {
@@ -258,7 +262,10 @@ int Context::create(const intptr_t* properties) {
}
}
#ifdef WITH_LIQUID_FLASH
lfInit();
#endif
return result;
}