SWDEV-273235 - Allow explicitly disabling LF support
Currently LiquidFlash cannot be supported from Github Enterprise,
hence we need to be able to build with out it.
Allow this by setting -DWITH_LIQUID_FLASH=0.
Change-Id: I975e8ee16b7ba033e3eb95fe40955d8c1d4779b7
[ROCm/clr commit: 7034e749e3]
Šī revīzija ir iekļauta:
@@ -34,14 +34,13 @@
|
||||
#include "CL/cl_dx9_media_sharing.h"
|
||||
#endif //_WIN32
|
||||
|
||||
#ifndef WITH_LIQUID_FLASH
|
||||
#if (!defined(BUILD_HSA_TARGET) && defined(WITH_HSA_DEVICE) && \
|
||||
defined(WITH_AMDGPU_PRO)) || defined(_WIN32)
|
||||
#define WITH_LIQUID_FLASH 1
|
||||
#endif
|
||||
|
||||
#ifdef WITH_LIQUID_FLASH
|
||||
#include "lf.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace amd {
|
||||
|
||||
@@ -98,7 +97,7 @@ Context::~Context() {
|
||||
glenv_ = NULL;
|
||||
}
|
||||
|
||||
#ifdef WITH_LIQUID_FLASH
|
||||
#if WITH_LIQUID_FLASH
|
||||
lfTerminate();
|
||||
#endif
|
||||
}
|
||||
@@ -275,7 +274,7 @@ int Context::create(const intptr_t* properties) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WITH_LIQUID_FLASH
|
||||
#if WITH_LIQUID_FLASH
|
||||
lfInit();
|
||||
#endif
|
||||
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user