1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Savestates/RSX: Save pending flip

This commit is contained in:
Eladash 2024-03-27 17:38:28 +02:00 committed by Elad Ashkenazi
parent 6a1fa88e15
commit a6fa091ab3
2 changed files with 27 additions and 1 deletions

View File

@ -620,6 +620,32 @@ namespace rsx
rsx_log.error("Savestate created in draw call scope. Report to developers if there are issues with it.");
}
if (ar.is_writing() || version >= 2)
{
ar(vblank_count);
b8 flip_pending{};
if (ar.is_writing())
{
flip_pending = !!(async_flip_requested & flip_request::emu_requested);
}
ar(flip_pending);
if (flip_pending)
{
ar(vblank_at_flip);
ar(async_flip_buffer);
if (!ar.is_writing())
{
async_flip_requested |= flip_request::emu_requested;
flip_notification_count = 1;
}
}
}
if (ar.is_writing())
{
if (fifo_ctrl && state & cpu_flag::again)

View File

@ -54,7 +54,7 @@ SERIALIZATION_VER(lv2_config, 9, 1)
namespace rsx
{
SERIALIZATION_VER(rsx, 10, 1)
SERIALIZATION_VER(rsx, 10, 1, 2/*Pending flip*/)
}
namespace np