diff --git a/.pick_status.json b/.pick_status.json index cbfdb211340..0eaabd60e04 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3144,7 +3144,7 @@ "description": "rusticl: use pipe_sampler_view_release", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "a245ed462ac9729b2c3d568ed0c9e0cd3eb70273", "notes": null diff --git a/src/gallium/frontends/rusticl/mesa/pipe/context.rs b/src/gallium/frontends/rusticl/mesa/pipe/context.rs index d99803ad539..ef4feb1a8e1 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/context.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/context.rs @@ -660,7 +660,7 @@ fn has_required_cbs(context: &pipe_context) -> bool { & has_required_feature!(context, launch_grid) & has_required_feature!(context, memory_barrier) & has_required_feature!(context, resource_copy_region) - // implicitly used through pipe_sampler_view_reference + // implicitly used through pipe_sampler_view_release & has_required_feature!(context, sampler_view_destroy) & has_required_feature!(context, set_constant_buffer) & has_required_feature!(context, set_global_binding) diff --git a/src/gallium/frontends/rusticl/mesa/pipe/resource.rs b/src/gallium/frontends/rusticl/mesa/pipe/resource.rs index cdd2ffe9ab3..173d57fb84b 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/resource.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/resource.rs @@ -326,7 +326,7 @@ impl<'c, 'r> PipeSamplerView<'c, 'r> { impl Drop for PipeSamplerView<'_, '_> { fn drop(&mut self) { unsafe { - pipe_sampler_view_reference(&mut self.view.as_ptr(), ptr::null_mut()); + pipe_sampler_view_release(self.view.as_ptr()); } } }