Do not block XMA when there is no work buffer available
This commit is contained in:
parent
009f709ad4
commit
f43e400c91
|
@ -385,6 +385,9 @@ dword_result_t XMABlockWhileInUse_entry(lpvoid_t context_ptr) {
|
||||||
if (!context.input_buffer_0_valid && !context.input_buffer_1_valid) {
|
if (!context.input_buffer_0_valid && !context.input_buffer_1_valid) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!context.work_buffer_ptr) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
xe::threading::Sleep(std::chrono::milliseconds(1));
|
xe::threading::Sleep(std::chrono::milliseconds(1));
|
||||||
} while (true);
|
} while (true);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue