rusticl: use pipe_sampler_view_release

Fixes: a245ed462a ("rusticl/mesa: use pipe_sampler_view_reference")
Suggested-by: Seán de Búrca <leftmostcat@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36613>
This commit is contained in:
Karol Herbst
2025-08-06 17:10:58 +02:00
committed by Marge Bot
parent 8e39bab014
commit cfd8b9d3b3
2 changed files with 2 additions and 2 deletions

View File

@@ -711,7 +711,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)

View File

@@ -350,7 +350,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());
}
}
}