diff options
author | tfarley <tfarleygithub@gmail.com> | 2016-04-17 00:57:57 +0200 |
---|---|---|
committer | tfarley <tfarleygithub@gmail.com> | 2016-04-21 23:27:56 +0200 |
commit | 22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d (patch) | |
tree | fb0dc58288063f755eda7bc0f8cfb7e9573e397d /src/core/hle/service/y2r_u.cpp | |
parent | Config: Add scaled resolution option (diff) | |
download | yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar.gz yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar.bz2 yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar.lz yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar.xz yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.tar.zst yuzu-22f3a7e94ce0e325a8c3dfeb0814c4b82a42649d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/y2r_u.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp index 22f373adf..1672ad775 100644 --- a/src/core/hle/service/y2r_u.cpp +++ b/src/core/hle/service/y2r_u.cpp @@ -12,9 +12,6 @@ #include "core/hle/service/y2r_u.h" #include "core/hw/y2r.h" -#include "video_core/renderer_base.h" -#include "video_core/video_core.h" - //////////////////////////////////////////////////////////////////////////////////////////////////// // Namespace Y2R_U @@ -262,13 +259,12 @@ static void SetAlpha(Service::Interface* self) { static void StartConversion(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - HW::Y2R::PerformConversion(conversion); - // dst_image_size would seem to be perfect for this, but it doesn't include the gap :( u32 total_output_size = conversion.input_lines * (conversion.dst.transfer_unit + conversion.dst.gap); - VideoCore::g_renderer->Rasterizer()->InvalidateRegion( - Memory::VirtualToPhysicalAddress(conversion.dst.address), total_output_size); + Memory::RasterizerFlushAndInvalidateRegion(Memory::VirtualToPhysicalAddress(conversion.dst.address), total_output_size); + + HW::Y2R::PerformConversion(conversion); LOG_DEBUG(Service_Y2R, "called"); completion_event->Signal(); |