Skip to content

Commit f521cb3

Browse files
committed
[XMA] Revert stall detection from Work loop
Fixes tomb raider
1 parent 5376439 commit f521cb3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/xenia/apu/xma_context_new.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ bool XmaContextNew::Work() {
174174
data.output_buffer_valid, data.subframe_decode_count,
175175
data.output_buffer_padding);
176176

177-
const uint32_t pre_decode_offset = data.input_buffer_read_offset;
178-
179177
Decode(&data);
180178
Consume(&output_rb, &data);
181179

@@ -185,18 +183,6 @@ bool XmaContextNew::Work() {
185183
id(), data.IsAnyInputBufferValid(), data.error_status);
186184
break;
187185
}
188-
189-
// If Decode didn't advance the read offset and produced no frame, we can't
190-
// make progress (e.g. split frame waiting for next buffer).
191-
// Break to avoid spinning.
192-
if (data.input_buffer_read_offset == pre_decode_offset &&
193-
current_frame_remaining_subframes_ == 0) {
194-
XELOGAPU(
195-
"XmaContext {}: Decode stalled at offset {} (no progress), "
196-
"waiting for next buffer",
197-
id(), pre_decode_offset);
198-
break;
199-
}
200186
}
201187

202188
data.output_buffer_write_offset =

0 commit comments

Comments
 (0)