forge
Explore
Log in

Don't you dare go Hollow

B4: ec-hw poisoned() is HwReset and reports the GPU reset

Browse files at this commit

6319c8aaaef14b897131264b8b245b4c169c1fbaAhmet Kaan GümüşParent: df1946c
poisoned() built a Config error, so callers treated a dead decoder as a
caller mistake and did not fall back. It now reports the reset and returns
HwReset, like the other lost-session paths.
crates/ec-hw/src/error.rsmodified+2 -1
@@ -55,7 +55,8 @@ impl Error {
5555
5656 /// The decoder was poisoned by a hung or lost GPU context.
5757 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()))
5960 }
6061
6162 /// Build an [`Error::HwReset`].