clover: add CL 3.0 event/queue queries
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7642>
This commit is contained in:
parent
a8bad2b71a
commit
c5a33ed8c2
|
@ -272,6 +272,7 @@ clGetEventProfilingInfo(cl_event d_ev, cl_profiling_info param,
|
|||
break;
|
||||
|
||||
case CL_PROFILING_COMMAND_END:
|
||||
case CL_PROFILING_COMMAND_COMPLETE:
|
||||
buf.as_scalar<cl_ulong>() = hev.time_end();
|
||||
break;
|
||||
|
||||
|
|
|
@ -98,6 +98,15 @@ clGetCommandQueueInfo(cl_command_queue d_q, cl_command_queue_info param,
|
|||
buf.as_vector<cl_queue_properties>() = q.properties();
|
||||
break;
|
||||
|
||||
case CL_QUEUE_DEVICE_DEFAULT:
|
||||
if (r_size)
|
||||
*r_size = 0;
|
||||
break;
|
||||
|
||||
case CL_QUEUE_SIZE:
|
||||
throw error(CL_INVALID_COMMAND_QUEUE);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw error(CL_INVALID_VALUE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue