rusticl/mesa: add PipeContext::device_reset_status

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32929>
This commit is contained in:
Karol Herbst 2025-01-07 16:59:52 +01:00 committed by Marge Bot
parent 46454f01d3
commit 2c52ddd1a6

View file

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