diff --git a/.pick_status.json b/.pick_status.json index 589db26728d..75a9ab97b0a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1214,7 +1214,7 @@ "description": "rusticl/mesa/context: flush context before destruction", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "50e981a0504bf0a94b7cd93105ff250707e6850d", "notes": null diff --git a/src/gallium/frontends/rusticl/mesa/pipe/context.rs b/src/gallium/frontends/rusticl/mesa/pipe/context.rs index 7673a44826f..29f15905ca7 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/context.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/context.rs @@ -659,6 +659,7 @@ impl PipeContext { impl Drop for PipeContext { fn drop(&mut self) { + self.flush().wait(); unsafe { self.pipe.as_ref().destroy.unwrap()(self.pipe.as_ptr()); }