summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar JamePeng2016-12-13 17:01:53 +0800
committerGravatar JamePeng2016-12-13 17:01:53 +0800
commitac2ed18a3b7c3968628f62dc447b3c39f7c51a32 (patch)
tree79fdafe5af737b9e0e5fa3901232bf805954663c /src
parentMerge pull request #2312 from lioncash/guard (diff)
downloadyuzu-ac2ed18a3b7c3968628f62dc447b3c39f7c51a32.tar.gz
yuzu-ac2ed18a3b7c3968628f62dc447b3c39f7c51a32.tar.xz
yuzu-ac2ed18a3b7c3968628f62dc447b3c39f7c51a32.zip
Minor amendment of GSP_GPU::ImportDisplayCaptureInfo code
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 49f4836b4..947958703 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -636,6 +636,7 @@ static void TriggerCmdReqQueue(Interface* self) {
636 * Inputs: 636 * Inputs:
637 * 0: Header 0x00180000 637 * 0: Header 0x00180000
638 * Outputs: 638 * Outputs:
639 * 0: Header Code[0x00180240]
639 * 1: Result code 640 * 1: Result code
640 * 2: Left framebuffer virtual address for the main screen 641 * 2: Left framebuffer virtual address for the main screen
641 * 3: Right framebuffer virtual address for the main screen 642 * 3: Right framebuffer virtual address for the main screen
@@ -658,18 +659,19 @@ static void ImportDisplayCaptureInfo(Interface* self) {
658 FrameBufferUpdate* top_screen = GetFrameBufferInfo(thread_id, 0); 659 FrameBufferUpdate* top_screen = GetFrameBufferInfo(thread_id, 0);
659 FrameBufferUpdate* bottom_screen = GetFrameBufferInfo(thread_id, 1); 660 FrameBufferUpdate* bottom_screen = GetFrameBufferInfo(thread_id, 1);
660 661
662 cmd_buff[0] = IPC::MakeHeader(0x18, 0x9, 0);
663 cmd_buff[1] = RESULT_SUCCESS.raw;
664 // Top Screen
661 cmd_buff[2] = top_screen->framebuffer_info[top_screen->index].address_left; 665 cmd_buff[2] = top_screen->framebuffer_info[top_screen->index].address_left;
662 cmd_buff[3] = top_screen->framebuffer_info[top_screen->index].address_right; 666 cmd_buff[3] = top_screen->framebuffer_info[top_screen->index].address_right;
663 cmd_buff[4] = top_screen->framebuffer_info[top_screen->index].format; 667 cmd_buff[4] = top_screen->framebuffer_info[top_screen->index].format;
664 cmd_buff[5] = top_screen->framebuffer_info[top_screen->index].stride; 668 cmd_buff[5] = top_screen->framebuffer_info[top_screen->index].stride;
665 669 // Bottom Screen
666 cmd_buff[6] = bottom_screen->framebuffer_info[bottom_screen->index].address_left; 670 cmd_buff[6] = bottom_screen->framebuffer_info[bottom_screen->index].address_left;
667 cmd_buff[7] = bottom_screen->framebuffer_info[bottom_screen->index].address_right; 671 cmd_buff[7] = bottom_screen->framebuffer_info[bottom_screen->index].address_right;
668 cmd_buff[8] = bottom_screen->framebuffer_info[bottom_screen->index].format; 672 cmd_buff[8] = bottom_screen->framebuffer_info[bottom_screen->index].format;
669 cmd_buff[9] = bottom_screen->framebuffer_info[bottom_screen->index].stride; 673 cmd_buff[9] = bottom_screen->framebuffer_info[bottom_screen->index].stride;
670 674
671 cmd_buff[1] = RESULT_SUCCESS.raw;
672
673 LOG_WARNING(Service_GSP, "called"); 675 LOG_WARNING(Service_GSP, "called");
674} 676}
675 677