rusticl/event: drop work item before updating status
authorKarol Herbst <kherbst@redhat.com>
Sat, 15 Apr 2023 01:48:16 +0000 (03:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 15 Apr 2023 21:07:01 +0000 (21:07 +0000)
commit60cfe15d799fdc5a57a691844cc30e49b3f74a47
treedaf90c32aea8f64e0dcb30cc6b631fef33842c98
parent00b9685d966c8abeadd58102850f5b26f133b10f
rusticl/event: drop work item before updating status

This fixes some CTS compiler tests where they relied on the cl_kernel
object to be released in time so it can recompile a program without
throwing CL_INVALID_OPERATION due to still having active kernel objects.

Fixes: 47a80d7ff4f ("rusticl/event: proper eventing support")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22510>
src/gallium/frontends/rusticl/core/event.rs