rusticl/program: rework dynamic Program state
authorKarol Herbst <git@karolherbst.de>
Wed, 26 Apr 2023 10:39:39 +0000 (12:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Apr 2023 20:49:42 +0000 (20:49 +0000)
commitf745a07b36cc4c8fae90d6586fda543957867285
tree82618981581cbd1ada2227eec6aa6bc7d10285c2
parent2b01934bc876d978080fd6812232dbb4c68f2a53
rusticl/program: rework dynamic Program state

We had a lot of implicit locks going on even though there was strictly no
need in doing so. This makes the compilation APIs more atomic while also
providing a cleaner interface.

Not in the mood of splitting it up without deadlocking in the middle. So
it's one big commit sadly.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22434>
src/gallium/frontends/rusticl/api/kernel.rs
src/gallium/frontends/rusticl/api/program.rs
src/gallium/frontends/rusticl/core/kernel.rs
src/gallium/frontends/rusticl/core/program.rs