[APU] XmaContextNew: refine output buffer invalidation
This commit is contained in:
@@ -219,10 +219,9 @@ bool XmaContextNew::Work() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Signal the game that the output buffer is full
|
// Signal the game that the output buffer is full
|
||||||
if (remaining_subframe_blocks_in_output_buffer_ == 0) {
|
if (remaining_subframe_blocks_in_output_buffer_ == 0 && output_rb.empty()) {
|
||||||
XELOGAPU("XmaContext {}: Output ring buffer is full, invalidating output",
|
XELOGAPU("XmaContext {}: Output ring buffer is full, invalidating output",
|
||||||
id());
|
id());
|
||||||
data.output_buffer_write_offset = data.output_buffer_read_offset;
|
|
||||||
data.output_buffer_valid = 0;
|
data.output_buffer_valid = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user