[XMA] Invalidate output buffer if there is nothing to process

- Fixes 565507E4 hardlock on boot
This commit is contained in:
Gliniak
2026-05-25 20:43:32 +02:00
committed by Radosław Gliński
parent 505697f980
commit 7e98ae6de3

View File

@@ -138,6 +138,10 @@ bool XmaContextNew::Work() {
Consume(&output_rb, &data);
data.output_buffer_write_offset =
output_rb.write_offset() / kOutputBytesPerBlock;
if (output_rb.empty()) {
data.output_buffer_valid = false;
}
StoreContextMerged(data, initial_data, context_ptr);
return true;
}