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>
(cherry picked from commit cfd8b9d3b3)
This commit is contained in:
Karol Herbst 2025-08-06 17:10:58 +02:00 committed by Eric Engestrom
parent 1013158227
commit c353e6ed2c
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)

View file

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