[gegl] Only load clEnqueueCopyBuffer pointer once
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Only load clEnqueueCopyBuffer pointer once
- Date: Fri, 18 Oct 2013 01:43:47 +0000 (UTC)
commit 38d17e9621eb6afa09797b792d82157729274144
Author: Daniel Sabo <DanielSabo gmail com>
Date: Wed Oct 16 10:54:12 2013 -0700
Only load clEnqueueCopyBuffer pointer once
Also make the load function order match the order in
gegl-cl-types.h for easier comparison.
gegl/opencl/gegl-cl-init.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index a3950dd..47c6938 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -303,27 +303,25 @@ gegl_cl_init (GError **error)
CL_LOAD_FUNCTION (clEnqueueWriteBuffer)
CL_LOAD_FUNCTION (clEnqueueReadBuffer)
CL_LOAD_FUNCTION (clEnqueueCopyBuffer)
- CL_LOAD_FUNCTION (clEnqueueCopyBuffer)
- CL_LOAD_FUNCTION (clEnqueueCopyBuffer)
- CL_LOAD_FUNCTION (clEnqueueCopyBuffer)
CL_LOAD_FUNCTION (clEnqueueReadBufferRect)
CL_LOAD_FUNCTION (clEnqueueWriteBufferRect)
CL_LOAD_FUNCTION (clEnqueueCopyBufferRect)
CL_LOAD_FUNCTION (clCreateImage2D)
CL_LOAD_FUNCTION (clCreateImage3D)
- CL_LOAD_FUNCTION (clEnqueueWriteImage)
CL_LOAD_FUNCTION (clEnqueueReadImage)
+ CL_LOAD_FUNCTION (clEnqueueWriteImage)
CL_LOAD_FUNCTION (clEnqueueCopyImage)
- CL_LOAD_FUNCTION (clEnqueueCopyBufferToImage)
CL_LOAD_FUNCTION (clEnqueueCopyImageToBuffer)
- CL_LOAD_FUNCTION (clEnqueueNDRangeKernel)
- CL_LOAD_FUNCTION (clEnqueueBarrier)
- CL_LOAD_FUNCTION (clFinish)
+ CL_LOAD_FUNCTION (clEnqueueCopyBufferToImage)
CL_LOAD_FUNCTION (clEnqueueMapBuffer)
CL_LOAD_FUNCTION (clEnqueueMapImage)
CL_LOAD_FUNCTION (clEnqueueUnmapMemObject)
+ CL_LOAD_FUNCTION (clEnqueueNDRangeKernel)
+ CL_LOAD_FUNCTION (clEnqueueBarrier)
+ CL_LOAD_FUNCTION (clFinish)
+
CL_LOAD_FUNCTION (clReleaseKernel)
CL_LOAD_FUNCTION (clReleaseProgram)
CL_LOAD_FUNCTION (clReleaseCommandQueue)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]