opencl: Remove reference to clSetCommandQueueProperty and print fixme, saying function is deprecated. (try 2)

Octavian Voicu octavian.voicu at gmail.com
Thu Sep 1 01:22:41 CDT 2011


--
CL_INVALID_QUEUE_PROPERTIES seemed the most plausible error among the errors
the function throws.

If we still want to call clSetCommandQueueProperty when compiling with
OpenCL 1.0 API (where the function is not deprecated), we need a configure
test for that. There's no other reliable way to tell that the prototype is
not there.

try 2: deprecate function also in opencl.dll instead of calling it anyway.

---
 dlls/opencl/opencl.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/opencl/opencl.c b/dlls/opencl/opencl.c
index 03acb48..9b466ec 100644
--- a/dlls/opencl/opencl.c
+++ b/dlls/opencl/opencl.c
@@ -276,10 +276,8 @@ cl_int WINAPI wine_clGetCommandQueueInfo(cl_command_queue command_queue, cl_comm
 cl_int WINAPI wine_clSetCommandQueueProperty(cl_command_queue command_queue, cl_command_queue_properties properties, cl_bool enable,
                                              cl_command_queue_properties * old_properties)
 {
-    cl_int ret;
-    TRACE("%p, 0x%lx, %d, %p\n", command_queue, (long unsigned int)properties, enable, old_properties);
-    ret = clSetCommandQueueProperty(command_queue, properties, enable, old_properties);
-    return ret;
+    FIXME("(%p, 0x%lx, %d, %p): deprecated\n", command_queue, (long unsigned int)properties, enable, old_properties);
+    return CL_INVALID_QUEUE_PROPERTIES;
 }
 
 
-- 
1.7.4.1




More information about the wine-patches mailing list