mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-03 22:45:00 -06:00
handle DingDong (#4418)
When the rptr and wptr are equal, the ring is idle
This commit is contained in:
parent
85b6f5f505
commit
44692090d2
@ -308,6 +308,10 @@ void PS4_SYSV_ABI sceGnmDingDong(u32 gnm_vqid, u32 next_offs_dw) {
|
||||
|
||||
auto& offs_dw = asc_next_offs_dw[vqid];
|
||||
|
||||
if (next_offs_dw == offs_dw) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (next_offs_dw < offs_dw && next_offs_dw != 0) {
|
||||
// For cases if a submission is split at the end of the ring buffer, we need to submit it in
|
||||
// two parts to handle the wrap
|
||||
|
||||
Loading…
Reference in New Issue
Block a user