diff --git a/.pick_status.json b/.pick_status.json index 7d1e630e614..12728c52101 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -634,7 +634,7 @@ "description": "rusticl/mesa: add PipeContext::device_reset_status", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/frontends/rusticl/mesa/pipe/context.rs b/src/gallium/frontends/rusticl/mesa/pipe/context.rs index 16b612e42d4..c1717faa39d 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/context.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/context.rs @@ -591,6 +591,16 @@ impl PipeContext { } } } + + pub fn device_reset_status(&self) -> pipe_reset_status { + unsafe { + if let Some(get_device_reset_status) = self.pipe.as_ref().get_device_reset_status { + get_device_reset_status(self.pipe.as_ptr()) + } else { + pipe_reset_status::PIPE_NO_RESET + } + } + } } impl Drop for PipeContext {