mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Savestates/RSX: Save pending flip
This commit is contained in:
parent
6a1fa88e15
commit
a6fa091ab3
2 changed files with 27 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue