mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
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 commitcfd8b9d3b3)
This commit is contained in:
parent
1013158227
commit
c353e6ed2c
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue