2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:29:41 +00:00
|
|
|
// Refer to the license.txt file included.
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2015-05-14 16:33:19 +00:00
|
|
|
#include <atomic>
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
|
|
|
|
2014-09-08 01:06:58 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Common/FileUtil.h"
|
2014-03-12 19:33:41 +00:00
|
|
|
#include "Common/StringUtil.h"
|
2014-06-05 23:29:54 +00:00
|
|
|
#include "Common/Logging/LogManager.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
|
|
|
|
#include "Core/ConfigManager.h"
|
|
|
|
#include "Core/Core.h"
|
2014-08-02 06:21:03 +00:00
|
|
|
#include "Core/Host.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Core/HW/Memmap.h"
|
|
|
|
#include "Core/HW/VideoInterface.h"
|
|
|
|
|
2014-08-02 06:21:03 +00:00
|
|
|
#include "VideoBackends/OGL/GLInterfaceBase.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoBackends/OGL/GLExtensions/GLExtensions.h"
|
|
|
|
#include "VideoBackends/Software/BPMemLoader.h"
|
|
|
|
#include "VideoBackends/Software/Clipper.h"
|
|
|
|
#include "VideoBackends/Software/DebugUtil.h"
|
|
|
|
#include "VideoBackends/Software/EfbInterface.h"
|
|
|
|
#include "VideoBackends/Software/HwRasterizer.h"
|
|
|
|
#include "VideoBackends/Software/OpcodeDecoder.h"
|
|
|
|
#include "VideoBackends/Software/Rasterizer.h"
|
|
|
|
#include "VideoBackends/Software/SWCommandProcessor.h"
|
2014-02-19 11:14:09 +00:00
|
|
|
#include "VideoBackends/Software/SWRenderer.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoBackends/Software/SWStatistics.h"
|
|
|
|
#include "VideoBackends/Software/SWVertexLoader.h"
|
|
|
|
#include "VideoBackends/Software/SWVideoConfig.h"
|
|
|
|
#include "VideoBackends/Software/VideoBackend.h"
|
|
|
|
#include "VideoBackends/Software/XFMemLoader.h"
|
|
|
|
|
2014-11-13 22:26:49 +00:00
|
|
|
#include "VideoCommon/BoundingBox.h"
|
2014-07-08 14:49:33 +00:00
|
|
|
#include "VideoCommon/Fifo.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/OnScreenDisplay.h"
|
2014-03-29 02:22:15 +00:00
|
|
|
#include "VideoCommon/PixelEngine.h"
|
|
|
|
#include "VideoCommon/XFMemory.h"
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2012-12-17 20:54:20 +00:00
|
|
|
#define VSYNC_ENABLED 0
|
|
|
|
|
2015-05-14 16:33:19 +00:00
|
|
|
static std::atomic<bool> s_swapRequested;
|
2013-08-20 11:51:39 +00:00
|
|
|
|
|
|
|
static volatile struct
|
|
|
|
{
|
2014-02-09 23:29:13 +00:00
|
|
|
u32 xfbAddr;
|
|
|
|
u32 fbWidth;
|
|
|
|
u32 fbHeight;
|
2013-08-20 11:51:39 +00:00
|
|
|
} s_beginFieldArgs;
|
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
namespace SW
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
|
|
|
|
2015-05-14 16:33:19 +00:00
|
|
|
static std::atomic<bool> fifoStateRun;
|
|
|
|
static std::atomic<bool> emuRunningState;
|
2011-12-31 04:16:12 +00:00
|
|
|
static std::mutex m_csSWVidOccupied;
|
2011-03-16 22:48:17 +00:00
|
|
|
|
2014-03-11 05:55:00 +00:00
|
|
|
std::string VideoSoftware::GetName() const
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2014-08-04 00:07:27 +00:00
|
|
|
return "Software Renderer";
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string VideoSoftware::GetDisplayName() const
|
|
|
|
{
|
|
|
|
return "Software Renderer";
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2014-08-04 00:07:27 +00:00
|
|
|
void VideoSoftware::ShowConfig(void *hParent)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2014-08-04 00:07:27 +00:00
|
|
|
Host_ShowVideoConfig(hParent, GetDisplayName(), "gfx_software");
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2014-08-06 04:44:21 +00:00
|
|
|
bool VideoSoftware::Initialize(void *window_handle)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2013-01-19 08:18:39 +00:00
|
|
|
g_SWVideoConfig.Load((File::GetUserPath(D_CONFIG_IDX) + "gfx_software.ini").c_str());
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2013-12-12 18:43:49 +00:00
|
|
|
InitInterface();
|
2014-01-18 04:11:59 +00:00
|
|
|
GLInterface->SetMode(GLInterfaceMode::MODE_DETECT);
|
2013-09-07 20:57:32 +00:00
|
|
|
if (!GLInterface->Create(window_handle))
|
|
|
|
{
|
2014-08-10 08:38:12 +00:00
|
|
|
INFO_LOG(VIDEO, "GLInterface::Create failed.");
|
2013-09-07 20:57:32 +00:00
|
|
|
return false;
|
|
|
|
}
|
2011-02-25 21:14:13 +00:00
|
|
|
|
2013-01-19 08:18:39 +00:00
|
|
|
InitBPMemory();
|
|
|
|
InitXFMemory();
|
|
|
|
SWCommandProcessor::Init();
|
2014-03-29 02:22:15 +00:00
|
|
|
PixelEngine::Init();
|
2013-01-19 08:18:39 +00:00
|
|
|
OpcodeDecoder::Init();
|
|
|
|
Clipper::Init();
|
|
|
|
Rasterizer::Init();
|
|
|
|
HwRasterizer::Init();
|
|
|
|
SWRenderer::Init();
|
|
|
|
DebugUtil::Init();
|
2011-02-25 21:14:13 +00:00
|
|
|
|
|
|
|
return true;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2013-02-26 01:05:02 +00:00
|
|
|
void VideoSoftware::DoState(PointerWrap& p)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2013-02-26 23:28:56 +00:00
|
|
|
bool software = true;
|
|
|
|
p.Do(software);
|
|
|
|
if (p.GetMode() == PointerWrap::MODE_READ && software == false)
|
|
|
|
// change mode to abort load of incompatible save state.
|
|
|
|
p.SetMode(PointerWrap::MODE_VERIFY);
|
2013-02-26 23:43:37 +00:00
|
|
|
|
|
|
|
// TODO: incomplete?
|
2013-02-26 01:05:02 +00:00
|
|
|
SWCommandProcessor::DoState(p);
|
2014-03-29 02:22:15 +00:00
|
|
|
PixelEngine::DoState(p);
|
2013-02-26 01:05:02 +00:00
|
|
|
EfbInterface::DoState(p);
|
|
|
|
OpcodeDecoder::DoState(p);
|
2013-02-26 04:49:24 +00:00
|
|
|
Clipper::DoState(p);
|
2014-04-27 18:59:04 +00:00
|
|
|
p.Do(xfmem);
|
2013-04-13 05:48:53 +00:00
|
|
|
p.Do(bpmem);
|
2013-04-09 23:57:39 +00:00
|
|
|
p.DoPOD(swstats);
|
2013-02-26 04:49:24 +00:00
|
|
|
|
|
|
|
// CP Memory
|
2014-08-27 17:26:06 +00:00
|
|
|
DoCPState(p);
|
2011-12-31 04:16:12 +00:00
|
|
|
}
|
|
|
|
|
2012-12-23 12:32:23 +00:00
|
|
|
void VideoSoftware::CheckInvalidState()
|
|
|
|
{
|
|
|
|
// there is no state to invalidate
|
|
|
|
}
|
|
|
|
|
2011-12-31 04:16:12 +00:00
|
|
|
void VideoSoftware::PauseAndLock(bool doLock, bool unpauseOnUnlock)
|
|
|
|
{
|
|
|
|
if (doLock)
|
|
|
|
{
|
|
|
|
EmuStateChange(EMUSTATE_CHANGE_PAUSE);
|
|
|
|
if (!Core::IsGPUThread())
|
|
|
|
m_csSWVidOccupied.lock();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (unpauseOnUnlock)
|
|
|
|
EmuStateChange(EMUSTATE_CHANGE_PLAY);
|
|
|
|
if (!Core::IsGPUThread())
|
|
|
|
m_csSWVidOccupied.unlock();
|
|
|
|
}
|
2011-02-08 11:02:34 +00:00
|
|
|
}
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::RunLoop(bool enable)
|
2011-02-08 11:02:34 +00:00
|
|
|
{
|
2015-05-14 16:33:19 +00:00
|
|
|
emuRunningState.store(enable);
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::EmuStateChange(EMUSTATE_CHANGE newState)
|
2010-06-24 20:54:03 +00:00
|
|
|
{
|
2015-05-14 16:33:19 +00:00
|
|
|
emuRunningState.store(newState == EMUSTATE_CHANGE_PLAY);
|
2010-06-24 20:54:03 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Shutdown()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2013-02-26 15:42:32 +00:00
|
|
|
// TODO: should be in Video_Cleanup
|
2013-01-19 08:18:39 +00:00
|
|
|
HwRasterizer::Shutdown();
|
|
|
|
SWRenderer::Shutdown();
|
2014-03-05 14:19:10 +00:00
|
|
|
DebugUtil::Shutdown();
|
2013-04-13 05:48:53 +00:00
|
|
|
|
2013-10-29 05:23:17 +00:00
|
|
|
// Do our OSD callbacks
|
2013-04-13 05:48:53 +00:00
|
|
|
OSD::DoCallbacks(OSD::OSD_SHUTDOWN);
|
|
|
|
|
2012-12-17 20:54:20 +00:00
|
|
|
GLInterface->Shutdown();
|
2015-01-31 02:25:16 +00:00
|
|
|
delete GLInterface;
|
2015-02-01 12:51:34 +00:00
|
|
|
GLInterface = nullptr;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2013-02-26 15:42:32 +00:00
|
|
|
void VideoSoftware::Video_Cleanup()
|
|
|
|
{
|
2014-03-03 20:11:20 +00:00
|
|
|
GLInterface->ClearCurrent();
|
2013-02-26 15:42:32 +00:00
|
|
|
}
|
|
|
|
|
2010-06-09 01:37:08 +00:00
|
|
|
// This is called after Video_Initialize() from the Core
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_Prepare()
|
2012-12-17 20:54:20 +00:00
|
|
|
{
|
|
|
|
GLInterface->MakeCurrent();
|
2014-01-01 04:33:55 +00:00
|
|
|
|
|
|
|
// Init extension support.
|
|
|
|
if (!GLExtensions::Init())
|
|
|
|
{
|
|
|
|
ERROR_LOG(VIDEO, "GLExtensions::Init failed!Does your video card support OpenGL 2.0?");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2013-01-24 16:31:08 +00:00
|
|
|
// Handle VSync on/off
|
|
|
|
GLInterface->SwapInterval(VSYNC_ENABLED);
|
2012-12-17 20:54:20 +00:00
|
|
|
|
2013-10-29 05:23:17 +00:00
|
|
|
// Do our OSD callbacks
|
2013-05-26 03:17:05 +00:00
|
|
|
OSD::DoCallbacks(OSD::OSD_INIT);
|
|
|
|
|
2013-01-19 08:18:39 +00:00
|
|
|
HwRasterizer::Prepare();
|
|
|
|
SWRenderer::Prepare();
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2013-01-19 08:18:39 +00:00
|
|
|
INFO_LOG(VIDEO, "Video backend initialized.");
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Run from the CPU thread (from VideoInterface.cpp)
|
2014-05-02 07:08:44 +00:00
|
|
|
void VideoSoftware::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight)
|
2013-10-29 05:23:17 +00:00
|
|
|
{
|
2014-09-19 16:46:11 +00:00
|
|
|
// XXX: fbStride should be implemented properly here
|
|
|
|
// If stride isn't implemented then there are problems with XFB
|
|
|
|
// Animal Crossing is a good example for this.
|
2013-08-20 11:51:39 +00:00
|
|
|
s_beginFieldArgs.xfbAddr = xfbAddr;
|
|
|
|
s_beginFieldArgs.fbWidth = fbWidth;
|
|
|
|
s_beginFieldArgs.fbHeight = fbHeight;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Run from the CPU thread (from VideoInterface.cpp)
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_EndField()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2013-08-20 11:51:39 +00:00
|
|
|
// Techincally the XFB is continually rendered out scanline by scanline between
|
|
|
|
// BeginField and EndFeild, We could possibly get away with copying out the whole thing
|
|
|
|
// at BeginField for less lag, but for the safest emulation we run it here.
|
|
|
|
|
2014-03-03 18:03:15 +00:00
|
|
|
if (g_bSkipCurrentFrame || s_beginFieldArgs.xfbAddr == 0)
|
|
|
|
{
|
2013-08-20 11:51:39 +00:00
|
|
|
swstats.frameCount++;
|
|
|
|
swstats.ResetFrame();
|
|
|
|
Core::Callback_VideoCopiedToXFB(false);
|
|
|
|
return;
|
|
|
|
}
|
2014-03-03 18:03:15 +00:00
|
|
|
if (!g_SWVideoConfig.bHwRasterizer)
|
|
|
|
{
|
2014-03-10 11:30:55 +00:00
|
|
|
if (!g_SWVideoConfig.bBypassXFB)
|
2014-03-03 18:03:15 +00:00
|
|
|
{
|
2013-11-23 10:20:45 +00:00
|
|
|
EfbInterface::yuv422_packed *xfb = (EfbInterface::yuv422_packed *) Memory::GetPointer(s_beginFieldArgs.xfbAddr);
|
2013-08-20 11:51:39 +00:00
|
|
|
|
2013-11-23 07:04:37 +00:00
|
|
|
SWRenderer::UpdateColorTexture(xfb, s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
|
|
|
|
}
|
2013-08-20 11:51:39 +00:00
|
|
|
}
|
|
|
|
|
2014-03-03 18:03:15 +00:00
|
|
|
// Ideally we would just move all the OpenGL context stuff to the CPU thread,
|
|
|
|
// but this gets messy when the hardware rasterizer is enabled.
|
|
|
|
// And neobrain loves his hardware rasterizer.
|
2013-08-20 11:51:39 +00:00
|
|
|
|
2014-03-03 18:03:15 +00:00
|
|
|
// If BypassXFB has already done a swap (cf. EfbCopy::CopyToXfb), skip this.
|
|
|
|
if (!g_SWVideoConfig.bBypassXFB)
|
|
|
|
{
|
2014-07-17 11:14:11 +00:00
|
|
|
// Dump frame if needed
|
|
|
|
DebugUtil::OnFrameEnd(s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
|
|
|
|
|
2014-03-03 18:03:15 +00:00
|
|
|
// If we are in dual core mode, notify the GPU thread about the new color texture.
|
2015-06-12 11:56:53 +00:00
|
|
|
if (SConfig::GetInstance().bCPUThread)
|
2015-05-14 16:33:19 +00:00
|
|
|
s_swapRequested.store(true);
|
2014-02-01 12:00:19 +00:00
|
|
|
else
|
|
|
|
SWRenderer::Swap(s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
|
|
|
|
}
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
u32 VideoSoftware::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
|
|
|
u32 value = 0;
|
|
|
|
|
2013-04-14 03:54:02 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case PEEK_Z:
|
|
|
|
{
|
|
|
|
value = EfbInterface::GetDepth(x, y);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case POKE_Z:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case PEEK_COLOR:
|
|
|
|
{
|
|
|
|
u32 color = 0;
|
|
|
|
EfbInterface::GetColor(x, y, (u8*)&color);
|
|
|
|
|
|
|
|
// rgba to argb
|
|
|
|
value = (color >> 8) | (color & 0xff) << 24;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case POKE_COLOR:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return value;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 23:50:40 +00:00
|
|
|
u32 VideoSoftware::Video_GetQueryResult(PerfQueryType type)
|
|
|
|
{
|
2014-03-29 02:22:15 +00:00
|
|
|
return EfbInterface::perf_values[type];
|
2013-02-16 23:50:40 +00:00
|
|
|
}
|
|
|
|
|
2014-11-13 22:26:49 +00:00
|
|
|
u16 VideoSoftware::Video_GetBoundingBox(int index)
|
|
|
|
{
|
|
|
|
return BoundingBox::coords[index];
|
|
|
|
}
|
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
bool VideoSoftware::Video_Screenshot(const std::string& filename)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2014-03-12 19:33:41 +00:00
|
|
|
SWRenderer::SetScreenshot(filename.c_str());
|
2013-11-16 04:07:08 +00:00
|
|
|
return true;
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2013-08-20 11:51:39 +00:00
|
|
|
// Run from the graphics thread
|
|
|
|
static void VideoFifo_CheckSwapRequest()
|
|
|
|
{
|
2015-05-14 16:33:19 +00:00
|
|
|
if (s_swapRequested.load())
|
2013-08-20 11:51:39 +00:00
|
|
|
{
|
|
|
|
SWRenderer::Swap(s_beginFieldArgs.fbWidth, s_beginFieldArgs.fbHeight);
|
2015-05-14 16:33:19 +00:00
|
|
|
s_swapRequested.store(false);
|
2013-08-20 11:51:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-06-09 01:37:08 +00:00
|
|
|
// -------------------------------
|
|
|
|
// Enter and exit the video loop
|
|
|
|
// -------------------------------
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_EnterLoop()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2011-12-31 04:16:12 +00:00
|
|
|
std::lock_guard<std::mutex> lk(m_csSWVidOccupied);
|
2015-05-14 16:33:19 +00:00
|
|
|
fifoStateRun.store(true);
|
2011-03-16 22:48:17 +00:00
|
|
|
|
2015-05-14 16:33:19 +00:00
|
|
|
while (fifoStateRun.load())
|
2011-03-16 23:57:13 +00:00
|
|
|
{
|
2013-08-20 11:51:39 +00:00
|
|
|
VideoFifo_CheckSwapRequest();
|
2011-03-16 22:48:17 +00:00
|
|
|
g_video_backend->PeekMessages();
|
2011-03-16 23:57:13 +00:00
|
|
|
|
|
|
|
if (!SWCommandProcessor::RunBuffer())
|
|
|
|
{
|
|
|
|
Common::YieldCPU();
|
2011-03-16 22:48:17 +00:00
|
|
|
}
|
2011-03-16 23:57:13 +00:00
|
|
|
|
2015-05-14 16:33:19 +00:00
|
|
|
while (!emuRunningState.load() && fifoStateRun.load())
|
2011-03-16 23:57:13 +00:00
|
|
|
{
|
2011-03-17 10:17:45 +00:00
|
|
|
g_video_backend->PeekMessages();
|
2013-08-20 11:51:39 +00:00
|
|
|
VideoFifo_CheckSwapRequest();
|
2011-12-31 04:16:12 +00:00
|
|
|
m_csSWVidOccupied.unlock();
|
2011-03-17 10:17:45 +00:00
|
|
|
Common::SleepCurrentThread(1);
|
2011-12-31 04:16:12 +00:00
|
|
|
m_csSWVidOccupied.lock();
|
2011-03-16 23:57:13 +00:00
|
|
|
}
|
2013-10-29 05:23:17 +00:00
|
|
|
}
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_ExitLoop()
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2015-05-14 16:33:19 +00:00
|
|
|
fifoStateRun.store(false);
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
// TODO : could use the OSD class in video common, we would need to implement the Renderer class
|
|
|
|
// however most of it is useless for the SW backend so we could as well move it to its own class
|
2014-03-12 19:33:41 +00:00
|
|
|
void VideoSoftware::Video_AddMessage(const std::string& msg, u32 milliseconds)
|
2011-03-16 22:48:17 +00:00
|
|
|
{
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_ClearMessages()
|
2011-02-03 19:55:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_SetRendering(bool bEnabled)
|
2010-06-09 01:37:08 +00:00
|
|
|
{
|
2011-03-16 22:48:17 +00:00
|
|
|
SWCommandProcessor::SetRendering(bEnabled);
|
2010-06-09 01:37:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:48:17 +00:00
|
|
|
void VideoSoftware::Video_GatherPipeBursted()
|
|
|
|
{
|
|
|
|
SWCommandProcessor::GatherPipeBursted();
|
|
|
|
}
|
2010-06-09 01:37:08 +00:00
|
|
|
|
2014-02-02 13:16:43 +00:00
|
|
|
void VideoSoftware::RegisterCPMMIO(MMIO::Mapping* mmio, u32 base)
|
|
|
|
{
|
2014-02-04 00:09:57 +00:00
|
|
|
SWCommandProcessor::RegisterMMIO(mmio, base);
|
2014-02-02 13:16:43 +00:00
|
|
|
}
|
|
|
|
|
2011-02-07 22:01:08 +00:00
|
|
|
// Draw messages on top of the screen
|
2011-03-16 22:48:17 +00:00
|
|
|
unsigned int VideoSoftware::PeekMessages()
|
2011-02-07 22:01:08 +00:00
|
|
|
{
|
2012-12-17 20:54:20 +00:00
|
|
|
return GLInterface->PeekMessages();
|
2011-02-07 22:01:08 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 22:58:24 +00:00
|
|
|
}
|