Savestates/RSX: Save pending flip
This commit is contained in:
@@ -620,6 +620,32 @@ namespace rsx
|
|||||||
rsx_log.error("Savestate created in draw call scope. Report to developers if there are issues with it.");
|
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 (ar.is_writing())
|
||||||
{
|
{
|
||||||
if (fifo_ctrl && state & cpu_flag::again)
|
if (fifo_ctrl && state & cpu_flag::again)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ SERIALIZATION_VER(lv2_config, 9, 1)
|
|||||||
|
|
||||||
namespace rsx
|
namespace rsx
|
||||||
{
|
{
|
||||||
SERIALIZATION_VER(rsx, 10, 1)
|
SERIALIZATION_VER(rsx, 10, 1, 2/*Pending flip*/)
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace np
|
namespace np
|
||||||
|
|||||||
Reference in New Issue
Block a user