<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>552</bug_id>
          
          <creation_ts>2012-01-23 00:39:53 +0100</creation_ts>
          <short_desc>CLCommandQueue.putMapImage() call to clEnqueueMapImage() is invalid</short_desc>
          <delta_ts>2013-10-12 22:55:42 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jocl</product>
          <component>opencl</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Samuel Audet">samuel.audet</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>518fcb4730256a3aaf77cf787219d5941eb3c9b4</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1380</commentid>
    <comment_count>0</comment_count>
    <who name="Samuel Audet">samuel.audet</who>
    <bug_when>2012-01-23 00:39:53 +0100</bug_when>
    <thetext>CLCommandQueue.putMapImage() contains this call:

1225         ByteBuffer mappedImage = cl.clEnqueueMapImage(ID, image.ID, clBoolean(blockingMap),

1226                                          flag.FLAGS, ibB, ibC, null, null,

1227                                          conditions, conditionIDs, events==null ? null : events.IDs, error);

But null as argument for image_row_pitch is invalid according to OpenCL specs:

&quot;image_row_pitch returns the scan-line pitch in bytes for the mapped region. This must be a non-NULL value.&quot;

image_slice_pitch also needs to be non-NULL for 3D images.

And my understanding is that putMapImage() should return this value to the user somehow... maybe by resetting the rowPitch and slicePitch properties of the CLImage2d or CLImage3d object?

Thanks for looking into this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3103</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-12 22:55:42 +0200</bug_when>
    <thetext>Thank you. Pls verify and reopen if not satisfactory. No unit test!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>