Skip to content

Commit

Permalink
Added minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-goras-mobica committed May 23, 2024
1 parent 0880e48 commit 9fcaa9e
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ struct CommandBufferCommandFillBufferQueueNotNull
"CL_INVALID_COMMAND_QUEUE",
TEST_FAIL);

error = clCommandFillImageKHR(command_buffer, queue, src_image,
fill_color_1, origin, region, 0, nullptr,
nullptr, nullptr);

test_failure_error_ret(error, CL_INVALID_COMMAND_QUEUE,
"clCommandFillImageKHR should return "
"CL_INVALID_COMMAND_QUEUE",
TEST_FAIL);

return CL_SUCCESS;
}

Expand Down Expand Up @@ -172,16 +163,12 @@ struct CommandBufferCommandFillBufferContextNotSame
sizeof(cl_int) * num_elements, nullptr, &error);
test_error(error, "clCreateBuffer failed");

dst_image_ctx = create_image_2d(context1, CL_MEM_WRITE_ONLY, &formats,
512, 512, 0, NULL, &error);
test_error(error, "create_image_2d failed");

return CL_SUCCESS;
}

clContextWrapper context1;
clMemWrapper out_mem_ctx;
clMemWrapper dst_image_ctx;
};

// CL_INVALID_CONTEXT if the context associated with command_queue,
Expand Down Expand Up @@ -213,11 +200,6 @@ struct CommandBufferCommandFillImageContextNotSame
context1 = clCreateContext(0, 1, &device, nullptr, nullptr, &error);
test_error(error, "Failed to create context");

out_mem_ctx =
clCreateBuffer(context1, CL_MEM_WRITE_ONLY,
sizeof(cl_int) * num_elements, nullptr, &error);
test_error(error, "clCreateBuffer failed");

dst_image_ctx = create_image_2d(context1, CL_MEM_WRITE_ONLY, &formats,
512, 512, 0, NULL, &error);
test_error(error, "create_image_2d failed");
Expand All @@ -226,7 +208,6 @@ struct CommandBufferCommandFillImageContextNotSame
}

clContextWrapper context1;
clMemWrapper out_mem_ctx;
clMemWrapper dst_image_ctx;
};

Expand Down

0 comments on commit 9fcaa9e

Please sign in to comment.