[Command-buffer] Test finalizing empty command-buffer (#1782)

This patch adds two test cases related to command-buffer finalization:

1) That it is an error to finalize and already finalized command-buffer.
See https://github.com/KhronosGroup/OpenCL-Docs/pull/817

2) That it is not an error to create, finalize, and execute an empty
command-buffer. Closes issue #1781
This commit is contained in:
Ewan Crawford
2023-08-29 17:15:39 +01:00
committed by GitHub
parent c23631c690
commit a3262eb4b6
4 changed files with 93 additions and 1 deletions

View File

@@ -132,5 +132,9 @@ extern int test_event_info_reference_count(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_finalize_invalid(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_finalize_empty(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
#endif // CL_KHR_COMMAND_BUFFER_PROCS_H