rusticl: unbind compute state before deleting

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18581>
This commit is contained in:
Karol Herbst 2022-09-17 17:54:55 +02:00 committed by Marge Bot
parent 9ccdd86b90
commit 09d05e4e1c

View file

@ -1013,6 +1013,7 @@ impl Kernel {
ctx.clear_shader_images(iviews.len() as u32);
ctx.clear_sampler_views(sviews.len() as u32);
ctx.clear_sampler_states(samplers.len() as u32);
ctx.bind_compute_state(ptr::null_mut());
ctx.delete_compute_state(cso);
ctx.memory_barrier(PIPE_BARRIER_GLOBAL_BUFFER);