clover/event: Include additional event statuses for clSetEventCallback
authorAaron Watry <awatry@gmail.com>
Fri, 4 Aug 2017 01:55:18 +0000 (20:55 -0500)
committerAaron Watry <awatry@gmail.com>
Wed, 16 Aug 2017 00:55:15 +0000 (19:55 -0500)
commita8296dbd5a7d90a3a52e7a28fce5b8e8982efbeb
treea81455a5f1a7d8bf5d9d4c5e563e255d82566174
parent494f86bbe5b488f04390126d9988032194f82a2f
clover/event: Include additional event statuses for clSetEventCallback

From CL 2.0 Section 5.11 (Event Objects):
  clSetEventCallback returns CL_SUCCESS if the function is executed successfully. Otherwise, it
  returns one of the following errors:
    ...
    CL_INVALID_VALUE if pfn_event_notify is NULL or if command_exec_callback_type is
    not CL_SUBMITTED , CL_RUNNING or CL_COMPLETE .

Fixes: OpenCL CTS test_conformance/events/test_events callbacks
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/event.cpp