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:
Karol Herbst 2023-10-28 18:18:15 +02:00
parent 5f97ef3d03
commit 900ce1f4f4

View file

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