mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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:
parent
46454f01d3
commit
2c52ddd1a6
1 changed files with 10 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue