mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
rsx: Do not discard flip notifications
This commit is contained in:
parent
f66256cc13
commit
7422ab9e55
3 changed files with 34 additions and 17 deletions
|
@ -1770,6 +1770,11 @@ namespace rsx
|
|||
{
|
||||
ensure(rsx->isHLE);
|
||||
|
||||
if (rsx->vblank_at_flip != umax)
|
||||
{
|
||||
rsx->flip_notification_count++;
|
||||
}
|
||||
|
||||
if (auto ptr = rsx->queue_handler)
|
||||
{
|
||||
rsx->intr_thread->cmd_list
|
||||
|
@ -1818,7 +1823,7 @@ namespace rsx
|
|||
template<u32 index>
|
||||
struct driver_flip
|
||||
{
|
||||
static void impl(thread*, u32 /*reg*/, u32 arg)
|
||||
static void impl(thread* rsx, u32 /*reg*/, u32 arg)
|
||||
{
|
||||
sys_rsx_context_attribute(0x55555555, 0x102, index, arg, 0, 0);
|
||||
}
|
||||
|
@ -1827,8 +1832,13 @@ namespace rsx
|
|||
template<u32 index>
|
||||
struct queue_flip
|
||||
{
|
||||
static void impl(thread*, u32 /*reg*/, u32 arg)
|
||||
static void impl(thread* rsx, u32 /*reg*/, u32 arg)
|
||||
{
|
||||
if (rsx->vblank_at_flip != umax)
|
||||
{
|
||||
rsx->flip_notification_count++;
|
||||
}
|
||||
|
||||
sys_rsx_context_attribute(0x55555555, 0x103, index, arg, 0, 0);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue