rusticl/kernel: clGetKernelWorkGroupInfo allows a NULL device
authorKarol Herbst <kherbst@redhat.com>
Sun, 24 Apr 2022 13:24:49 +0000 (15:24 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Sep 2022 05:58:12 +0000 (05:58 +0000)
commitfe8789e6746a4623b170a1c98ef1952435475696
tree1cb773cc8de275311c5e1f1033ccb5aa8bb80b61
parentea02dfce8806268cc1777cf6ccc7d636d4c00f01
rusticl/kernel: clGetKernelWorkGroupInfo allows a NULL device

In which case we have to get the only device associated with the kernel.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
src/gallium/frontends/rusticl/api/kernel.rs