Khronos Public Bugzilla
Bug 812 - 'slicePitch' parameters should be removed from enqueue*Image, because they only apply for 3D images
'slicePitch' parameters should be removed from enqueue*Image, because they on...
Status: RESOLVED FIXED
Product: WebCL
Classification: Unclassified
Component: Specification
1.0
All All
: P3 normal
: ---
Assigned To: WebCL Mailing List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-21 06:28 PST by Tomi Aarnio
Modified: 2013-03-18 07:02 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomi Aarnio 2013-02-21 06:28:58 PST
For example, enqueueReadImage is currently defined as follows:

void enqueueReadImage(
                    WebCLImage              image,
                    CLboolean               blockingRead,
                    CLuint[2]               origin,
                    CLuint[2]               region,
                    CLuint                  rowPitch,
                    CLuint                  slicePitch,
                    ArrayBuffer             ptr,
                    optional WebCLEvent[]?  eventWaitList,
                    optional WebCLEvent?    event);

The 'slicePitch' parameter is redundant/confusing when dealing with 2D images, so we should remove it.

3D image support can be reinstated in a backward-compatible manner by overloading 'rowPitch' so that it can be a single CLuint or a CLuint[2] array.
Comment 1 Tomi Aarnio 2013-03-18 07:02:58 PDT
Fixed by removing 'slicePitch' parameters in enqueue*Image(). 

NOTE: The corresponding slice pitch parameters in enqueue*BufferRect() must remain in place, because they have nothing to do with 3D images.