From 09d05e4e1ce2d6d8c7bf5eacc1aa9699df828bbc Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 17 Sep 2022 17:54:55 +0200 Subject: [PATCH] rusticl: unbind compute state before deleting Signed-off-by: Karol Herbst Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index 1b5cf1be5ab..c767709267b 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -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);