mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 17:12:37 -06:00
Flush for y2r (moflex)
This commit is contained in:
parent
16fbba3c2a
commit
62668688e1
1 changed files with 11 additions and 0 deletions
|
@ -9,7 +9,11 @@
|
||||||
#include "core/hle/hle.h"
|
#include "core/hle/hle.h"
|
||||||
#include "core/hle/kernel/event.h"
|
#include "core/hle/kernel/event.h"
|
||||||
#include "core/hle/service/y2r_u.h"
|
#include "core/hle/service/y2r_u.h"
|
||||||
|
#include "core/mem_map.h"
|
||||||
|
#include "core/memory.h"
|
||||||
|
|
||||||
#include "video_core/utils.h"
|
#include "video_core/utils.h"
|
||||||
|
#include "video_core/video_core.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Namespace Y2R_U
|
// Namespace Y2R_U
|
||||||
|
@ -260,6 +264,13 @@ static void StartConversion(Service::Interface* self) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// dst_image_size would seem to be perfect for this, but it doesn't include the stride :(
|
||||||
|
u32 total_output_size = conversion_params.input_lines *
|
||||||
|
(conversion_params.dst_transfer_unit + conversion_params.dst_stride);
|
||||||
|
VideoCore::g_renderer->hw_rasterizer->NotifyFlush(
|
||||||
|
Memory::VirtualToPhysicalAddress(conversion_params.dst_address), total_output_size);
|
||||||
|
|
||||||
LOG_DEBUG(Service_Y2R, "called");
|
LOG_DEBUG(Service_Y2R, "called");
|
||||||
completion_event->Signal();
|
completion_event->Signal();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue