Login  Register

Re: images w/ jogl

Posted by Michael Bien on Feb 16, 2011; 6:04pm
URL: https://forum.jogamp.org/images-w-jogl-tp995476p2511437.html

excuse me for the (very) late reply,

I promised to take a look but somehow forgot about that :(

in case you are still subscribed to this topic:
what should your test do? It does not throw any exception, all i see is a red line.
(tested with NV drivers/64bit only so far)

attached is the modified test which compiles against latest jogl and jocl.
Test2.java

best regards,
michael


notzed wrote
Hello again,

Now that OpenCL images seem to work (well apart from some weirdness which I haven't followed up on) i've been trying to get jogl textures to work with jocl.

I just get CL_INVALID_KERNEL_ARGS whenever I try to pass a CLGLTexture2d or CLGLImage2d (created from a renderbuffer) to a function.

I have a test case this time ... http://www.users.on.net/~notzed/java/jocl/Test1.java

If i pass a CLImage2d created from a CLContext for the image argument it enqueues the kernel fine but with the test case it generates errors:

kplanetoimage with texture failed
  can not enqueue NDRangeKernel: CLKernel [id: 140655620213664 name: planeToImage] with gWO: null gWS: {1024, 768} lWS: {64, 1} cond.: null events: null
error: CL_INVALID_KERNEL_ARGS (man page: http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html)
kplanetoimage with gl render buffer failed
  can not enqueue NDRangeKernel: CLKernel [id: 140655620213664 name: planeToImage] with gWO: null gWS: {1024, 768} lWS: {64, 1} cond.: null events: null
error: CL_INVALID_KERNEL_ARGS (man page: http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html)

Am I just doing something wrong?  I had a (very) cursory look at the jocl stuff i was calling but didn't see anything obviously out of place.

Cheers,
 Michael