images w/ jogl

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

images w/ jogl

notzed
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
Reply | Threaded
Open this post in threaded view
|

Re: images w/ jogl

Michael Bien
thank you for the testcase.

will take a look soon,
regards,
michael

On 07/26/2010 08:41 AM, notzed [via jogamp] 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



View message @ http://jogamp.762907.n3.nabble.com/images-w-jogl-tp995476p995476.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


Reply | Threaded
Open this post in threaded view
|

Re: images w/ jogl

Michael Bien
In reply to this post by notzed
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