Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test_conformance/images/samplerlessReads/test_iterations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ int test_read_image_2D( cl_context context, cl_command_queue queue, cl_kernel ke

if(gTestReadWrite)
{
// We need to reset this because gEnablePitch might be true and
// specifying a pitch on an image without a parent or host_ptr is
// invalid.
image_desc.image_row_pitch = 0;
read_write_image = clCreateImage(context,
CL_MEM_READ_WRITE,
imageInfo->format,
Expand Down
4 changes: 4 additions & 0 deletions test_conformance/images/samplerlessReads/test_read_1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ int test_read_image_1D( cl_context context, cl_command_queue queue, cl_kernel ke

if(gTestReadWrite)
{
// We need to reset this because gEnablePitch might be true and
// specifying a pitch on an image without a parent or host_ptr is
// invalid.
image_desc.image_row_pitch = 0;
read_write_image = clCreateImage(context,
CL_MEM_READ_WRITE,
imageInfo->format,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ int test_read_image_1D_array( cl_context context, cl_command_queue queue, cl_ker

if(gTestReadWrite)
{
// We need to reset this because gEnablePitch might be true and
// specifying a pitch on an image without a parent or host_ptr is
// invalid.
image_desc.image_row_pitch = 0;
read_write_image = clCreateImage(context,
CL_MEM_READ_WRITE,
imageInfo->format,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ int test_read_image_2D_array( cl_context context, cl_command_queue queue, cl_ker

if(gTestReadWrite)
{
// We need to reset this because gEnablePitch might be true and
// specifying a pitch on an image without a parent or host_ptr is
// invalid.
image_desc.image_row_pitch = 0;
image_desc.image_slice_pitch = 0;
read_write_image = clCreateImage(context,
CL_MEM_READ_WRITE,
imageInfo->format,
Expand Down
5 changes: 5 additions & 0 deletions test_conformance/images/samplerlessReads/test_read_3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ int test_read_image_3D( cl_context context, cl_command_queue queue, cl_kernel ke

if(gTestReadWrite)
{
// We need to reset this because gEnablePitch might be true and
// specifying a pitch on an image without a parent or host_ptr is
// invalid.
image_desc.image_row_pitch = 0;
image_desc.image_slice_pitch = 0;
read_write_image = clCreateImage(context,
CL_MEM_READ_WRITE,
imageInfo->format,
Expand Down
Loading