Khronos Public Bugzilla
Bug 503 - Unify clEnqueue<....>Buffer and clEnqueue<....>BufferRect
Summary: Unify clEnqueue<....>Buffer and clEnqueue<....>BufferRect
Status: NEW
Alias: None
Product: OpenCL
Classification: Unclassified
Component: Specification (show other bugs)
Version: 1.1
Hardware: All All
: P3 minor
Target Milestone: ---
Assignee: Aaftab Munshi
QA Contact: OpenCL Working Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 23:43 PDT by Sean Settle
Modified: 2011-07-26 23:43 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:43:47 PDT
For example, unify clEnqueueWriteBuffer and clEnqueueWriteBufferRect:
cl_int clEnqueueWriteBuffer (
    cl_command_queue command_queue,
    cl_mem buffer,
    cl_bool blocking_write,
    size_t offset,
    size_t cb,
    const void *ptr,
    cl_uint num_events_in_wait_list,
    const cl_event *event_wait_list,
    cl_event *event )

cl_int clEnqueueWriteBufferRect (
    cl_command_queue command_queue,
    cl_mem buffer,
    cl_bool blocking_write,
    const size_t buffer_origin[3],
    const size_t host_origin[3],
    const size_t region[3],
    size_t buffer_row_pitch,
    size_t buffer_slice_pitch,
    size_t host_row_pitch,
    size_t host_slice_pitch,
    const void *ptr,
    cl_uint num_events_in_wait_list,
    const cl_event *event_wait_list,
    cl_event *event )

with a modified clEnqueueWriteBuffer (including my prior suggestion about adding an element_pitch):

cl_int clEnqueueWriteBuffer (
    cl_command_queue command_queue,
    cl_mem buffer,
    cl_bool blocking_write,
    const size_t buffer_origin[3],
    const size_t host_origin[3],
    const size_t region[3],
    const size_t buffer_pitch[3],
    const size_t host_pitch[3],
    const void *ptr,
    cl_uint num_events_in_wait_list,
    const cl_event *event_wait_list,
    cl_event *event )

This also makes buffer and image objects and their functions more consistent with one another.