diff options
author | bunnei <bunneidev@gmail.com> | 2015-02-09 22:45:54 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-02-10 19:05:56 -0500 |
commit | 9eae2400c081e463a9441cb94639c7a8c6c13d73 (patch) | |
tree | 983afde69868322c69b8d84f4d73526647025d88 /src/core/hle/service/gsp_gpu.cpp | |
parent | 848795f3834c30695208e86c5bbebf6c71a57d96 (diff) |
GSP: Call SetBufferSwap for each screen on corresponding signal interrupt.
Diffstat (limited to 'src/core/hle/service/gsp_gpu.cpp')
-rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index 495c117e..027b9fa9 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp @@ -227,14 +227,13 @@ void SignalInterrupt(InterruptId interrupt_id) { // Update framebuffer information if requested // TODO(yuriks): Confirm where this code should be called. It is definitely updated without // executing any GSP commands, only waiting on the event. - for (int screen_id = 0; screen_id < 2; ++screen_id) { + int screen_id = (interrupt_id == InterruptId::PDC0) ? 0 : (interrupt_id == InterruptId::PDC0) ? 1 : -1; + if (screen_id != -1) { FrameBufferUpdate* info = GetFrameBufferInfo(thread_id, screen_id); - if (info->is_dirty) { SetBufferSwap(screen_id, info->framebuffer_info[info->index]); + info->is_dirty = false; } - - info->is_dirty = false; } } g_interrupt_event->Signal(); |