mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 13:30:38 +02:00
rusticl/queue: release bound constant buffer
This fixes memory leaks in drivers. Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25946>
This commit is contained in:
parent
5f97ef3d03
commit
900ce1f4f4
1 changed files with 6 additions and 0 deletions
|
|
@ -45,6 +45,12 @@ impl Deref for QueueContext {
|
|||
}
|
||||
}
|
||||
|
||||
impl Drop for QueueContext {
|
||||
fn drop(&mut self) {
|
||||
self.ctx.set_constant_buffer(0, &[])
|
||||
}
|
||||
}
|
||||
|
||||
struct QueueState {
|
||||
pending: Vec<Arc<Event>>,
|
||||
last: Weak<Event>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue