rsx: Fix second VBLANK time

Turns out that both VBLANK time and flip time clock at 80Mhz which is MFTB rate, just that cellGcmGetLastFlipTime is missing conversion to microseconds, so odd.
This commit is contained in:
Eladash 2022-05-29 12:54:24 +03:00 committed by Megamouse
parent eec27f0e89
commit dd4722fc1f

View File

@ -751,8 +751,8 @@ error_code sys_rsx_context_attribute(u32 context_id, u32 package_id, u64 a3, u64
// todo: this is wrong and should be 'second' vblank handler and freq, but since currently everything is reported as being 59.94, this should be fine
vm::_ref<u32>(render->device_addr + 0x30) = 1;
// Time point is supplied in argument 4
const u64 current_time = a4;
// Time point is supplied in argument 4 (todo: convert it to MFTB rate and use it)
const u64 current_time = rsxTimeStamp();
driverInfo.head[a3].lastSecondVTime = current_time;