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