Skip to content

Commit

Permalink
fix data->is_aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr committed Mar 30, 2024
1 parent 26255dd commit 71eca12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_conformance/images/clFillImage/test_fill_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ cl_mem create_image( cl_context context, cl_command_queue queue, BufferOwningPtr
struct pitch_buffer_data *data = (struct pitch_buffer_data *)malloc(
sizeof(struct pitch_buffer_data));
data->buf = host_ptr;
data->is_aligned = CL_VERSION_MAJOR(version) == 1
&& imageInfo->type == CL_MEM_OBJECT_IMAGE1D_BUFFER;
data->is_aligned = (CL_VERSION_MAJOR(version) != 1)
&& (imageInfo->type == CL_MEM_OBJECT_IMAGE1D_BUFFER);
if (*error == CL_SUCCESS)
{
int callbackError =
Expand Down

0 comments on commit 71eca12

Please sign in to comment.