Khronos Public Bugzilla
Bug 501 - Consolidate buffer<...>pitch and host<...>pitch in clEnqueue<...>BufferRect and clEnqueueImage<...>
Consolidate buffer<...>pitch and host<...>pitch in clEnqueue<...>BufferRect a...
Status: NEW
Product: OpenCL
Classification: Unclassified
Component: Specification
1.1
All All
: P3 minor
: ---
Assigned To: Aaftab Munshi
OpenCL Working Group
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-26 23:25 PDT by Sean Settle
Modified: 2011-07-26 23:25 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 Sean Settle 2011-07-26 23:25:20 PDT
Currently, for example in clEnqueueWriteBufferRect, users must specify two separate arguments for buffer pitches (buffer_row_pitch and buffer_slice_pitch) and similarly two for host pitches.  I suggest adding a buffer_element_pitch which is equivalent to a stride in a 1D array.  Then combine these three buffer pitches into one argument, const size_t buffer_pitch[3], and similarly const size_t buffer_host[3].  This adds some useful functionality and completes the established pattern observed with const size_t buffer_origin[3], const size_t host_origin[3], and const size_t region[3].