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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user