From afb627907339e2071fa52c4ffafec3f50021f240 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 3 May 2016 11:48:35 -0400
Subject: [PATCH] P4 to Git Change 1264616 by lmoriche@lmoriche_opencl_dev on
2016/05/03 11:39:29
SWDEV-78467 - OpenCL LiquidFlash feature
Enable LiquidFlash on mainline
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#132 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#273 edit
---
opencl/api/opencl/amdocl/cl_context.cpp | 8 ++++----
opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opencl/api/opencl/amdocl/cl_context.cpp b/opencl/api/opencl/amdocl/cl_context.cpp
index a3ac326896..e5d08b0350 100644
--- a/opencl/api/opencl/amdocl/cl_context.cpp
+++ b/opencl/api/opencl/amdocl/cl_context.cpp
@@ -513,7 +513,7 @@ clGetExtensionFunctionAddress(const char* func_name)
#if cl_khr_il_program
CL_EXTENSION_ENTRYPOINT_CHECK(clCreateProgramWithILKHR);
#endif // cl_khr_il_program
-#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE)
+#if cl_amd_liquid_flash
CL_EXTENSION_ENTRYPOINT_CHECK(clCreateFileObjectAMD);
#endif // cl_amd_liquid_flash
break;
@@ -535,7 +535,7 @@ clGetExtensionFunctionAddress(const char* func_name)
CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWaitSignalAMD);
CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWriteSignalAMD);
CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueMakeBuffersResidentAMD);
-#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE)
+#if cl_amd_liquid_flash
CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueWriteBufferFromFileAMD);
CL_EXTENSION_ENTRYPOINT_CHECK(clEnqueueReadBufferToFileAMD);
#endif // cl_amd_liquid_flash
@@ -553,7 +553,7 @@ clGetExtensionFunctionAddress(const char* func_name)
CL_EXTENSION_ENTRYPOINT_CHECK(clGetPlaneFromImageAMD);
#endif //_WIN32
CL_EXTENSION_ENTRYPOINT_CHECK(clGetKernelSubGroupInfoKHR);
-#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE)
+#if cl_amd_liquid_flash
CL_EXTENSION_ENTRYPOINT_CHECK(clGetFileObjectInfoAMD);
#endif // cl_amd_liquid_flash
break;
@@ -601,7 +601,7 @@ clGetExtensionFunctionAddress(const char* func_name)
CL_EXTENSION_ENTRYPOINT_CHECK(clRetainDeviceEXT);
CL_EXTENSION_ENTRYPOINT_CHECK(clReleaseDeviceEXT);
#endif // cl_ext_device_fission
-#if cl_amd_liquid_flash && !defined(OPENCL_MAINLINE)
+#if cl_amd_liquid_flash
CL_EXTENSION_ENTRYPOINT_CHECK(clRetainFileObjectAMD);
CL_EXTENSION_ENTRYPOINT_CHECK(clReleaseFileObjectAMD);
#endif // cl_amd_liquid_flash
diff --git a/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp b/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp
index aeccfdba8f..2bd79aaad9 100644
--- a/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp
+++ b/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp
@@ -13,7 +13,7 @@
typedef wchar_t char_t;
#endif // __linux__
-#if !defined(OPENCL_MAINLINE) && !defined(BUILD_HSA_TARGET) && defined(_WIN32)
+#if !defined(BUILD_HSA_TARGET) && defined(_WIN32)
#define WITH_LIQUID_FLASH 1
#endif // _WIN32