B4: ec-hw poisoned() is HwReset and reports the GPU reset
Browse files at this commit6319c8aaaef14b897131264b8b245b4c169c1fbaParent: df1946c1 changed file +2 -1
crates/ec-hw/src/error.rsmodified+2 -1
| @@ -55,7 +55,8 @@ impl Error { | ||
| 55 | 55 | |
| 56 | 56 | /// The decoder was poisoned by a hung or lost GPU context. |
| 57 | 57 | pub fn poisoned(what: impl Into<String>) -> Error { |
| 58 | - Error::Config(format!("hardware decoder poisoned: {}", what.into())) | |
| 58 | + crate::reset::report_gpu_reset(); | |
| 59 | + Error::hw_reset(format!("hardware decoder poisoned: {}", what.into())) | |
| 59 | 60 | } |
| 60 | 61 | |
| 61 | 62 | /// Build an [`Error::HwReset`]. |