summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar tfarley2015-05-22 14:49:42 -0700
committerGravatar tfarley2015-05-22 15:51:34 -0700
commit62668688e1055dbfcbff824acfd9c9f970fc2c09 (patch)
treef922946de22f54bf0c0aaaff01371f5ca7a2fc57 /src
parentMakeCurrent race condition fix (diff)
downloadyuzu-62668688e1055dbfcbff824acfd9c9f970fc2c09.tar.gz
yuzu-62668688e1055dbfcbff824acfd9c9f970fc2c09.tar.xz
yuzu-62668688e1055dbfcbff824acfd9c9f970fc2c09.zip
Flush for y2r (moflex)
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/y2r_u.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp
index ce822e990..15987e028 100644
--- a/src/core/hle/service/y2r_u.cpp
+++ b/src/core/hle/service/y2r_u.cpp
@@ -9,7 +9,11 @@
9#include "core/hle/hle.h" 9#include "core/hle/hle.h"
10#include "core/hle/kernel/event.h" 10#include "core/hle/kernel/event.h"
11#include "core/hle/service/y2r_u.h" 11#include "core/hle/service/y2r_u.h"
12#include "core/mem_map.h"
13#include "core/memory.h"
14
12#include "video_core/utils.h" 15#include "video_core/utils.h"
16#include "video_core/video_core.h"
13 17
14//////////////////////////////////////////////////////////////////////////////////////////////////// 18////////////////////////////////////////////////////////////////////////////////////////////////////
15// Namespace Y2R_U 19// Namespace Y2R_U
@@ -260,6 +264,13 @@ static void StartConversion(Service::Interface* self) {
260 break; 264 break;
261 } 265 }
262 } 266 }
267
268 // dst_image_size would seem to be perfect for this, but it doesn't include the stride :(
269 u32 total_output_size = conversion_params.input_lines *
270 (conversion_params.dst_transfer_unit + conversion_params.dst_stride);
271 VideoCore::g_renderer->hw_rasterizer->NotifyFlush(
272 Memory::VirtualToPhysicalAddress(conversion_params.dst_address), total_output_size);
273
263 LOG_DEBUG(Service_Y2R, "called"); 274 LOG_DEBUG(Service_Y2R, "called");
264 completion_event->Signal(); 275 completion_event->Signal();
265 276