[Pkg-opencl-devel] mesa-opencl-icd/libclc: ! does not accept pointers

Rebecca N. Palmer rebecca_palmer at zoho.com
Mon Mar 13 07:52:17 UTC 2017


Control: retitle -1 mesa-opencl-icd/libclc: ! does not accept pointers

There appear to be two separate bugs here:

-get_global_id() does not work (the clinfo problem).  This has also been 
reported as #857591 and upstream, where it has a patch: 
https://bugs.freedesktop.org/attachment.cgi?id=130136

Please use #857591 for further discussion of this issue.

-the ! operator does not accept pointer-to-struct, and possibly any 
pointers (the 3 errors, as opposed to warnings, in the blender compile 
log: 
sources.debian.net/src/blender/2.78.a%2Bdfsg0-4/intern/cycles/kernel/closure/bsdf_microfacet.h/#L269 
http://sources.debian.net/src/blender/2.78.a%2Bdfsg0-4/intern/cycles/kernel/closure/alloc.h/#L65

I attach a simple test case for that (works in beignet, my hardware 
doesn't support mesa-opencl-icd).  Please try both with and without the 
#define NULL 0 - blender has that, but possibly shouldn't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencl_pointertostruct_test.c
Type: text/x-csrc
Size: 3636 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20170313/f90735a6/attachment.c>


More information about the Pkg-opencl-devel mailing list