mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
rusticl/mesa: add PipeContext::device_reset_status
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32929>
(cherry picked from commit 2c52ddd1a6)
This commit is contained in:
parent
3aa3ec625d
commit
0b7bee3e09
2 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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