VideoCommon: Drop SetDitherMode()

It was a no-op on all backends apart from GL anyhow.
This commit is contained in:
Stenzek 2017-04-18 21:42:14 +10:00
parent 9dc7358395
commit ddc5275071
10 changed files with 1 additions and 28 deletions

View File

@ -1085,11 +1085,6 @@ void Renderer::SetLogicOpMode()
} }
} }
void Renderer::SetDitherMode()
{
// TODO: Set dither mode to bpmem.blendmode.dither
}
void Renderer::SetSamplerState(int stage, int texindex, bool custom_tex) void Renderer::SetSamplerState(int stage, int texindex, bool custom_tex)
{ {
const FourTexUnits& tex = bpmem.tex[texindex]; const FourTexUnits& tex = bpmem.tex[texindex];

View File

@ -25,7 +25,6 @@ public:
void SetGenerationMode() override; void SetGenerationMode() override;
void SetDepthMode() override; void SetDepthMode() override;
void SetLogicOpMode() override; void SetLogicOpMode() override;
void SetDitherMode() override;
void SetSamplerState(int stage, int texindex, bool custom_tex) override; void SetSamplerState(int stage, int texindex, bool custom_tex) override;
void SetInterlacingMode() override; void SetInterlacingMode() override;
void SetViewport() override; void SetViewport() override;

View File

@ -1108,11 +1108,6 @@ void Renderer::SetLogicOpMode()
D3D::command_list_mgr->SetCommandListDirtyState(COMMAND_LIST_STATE_PSO, true); D3D::command_list_mgr->SetCommandListDirtyState(COMMAND_LIST_STATE_PSO, true);
} }
void Renderer::SetDitherMode()
{
// EXISTINGD3D11TODO: Set dither mode to bpmem.blendmode.dither
}
void Renderer::SetSamplerState(int stage, int tex_index, bool custom_tex) void Renderer::SetSamplerState(int stage, int tex_index, bool custom_tex)
{ {
const FourTexUnits& tex = bpmem.tex[tex_index]; const FourTexUnits& tex = bpmem.tex[tex_index];

View File

@ -26,7 +26,6 @@ public:
void SetGenerationMode() override; void SetGenerationMode() override;
void SetDepthMode() override; void SetDepthMode() override;
void SetLogicOpMode() override; void SetLogicOpMode() override;
void SetDitherMode() override;
void SetSamplerState(int stage, int tex_index, bool custom_tex) override; void SetSamplerState(int stage, int tex_index, bool custom_tex) override;
void SetInterlacingMode() override; void SetInterlacingMode() override;
void SetViewport() override; void SetViewport() override;

View File

@ -1383,10 +1383,6 @@ void Renderer::ResetSamplerStates()
g_object_cache->ClearSamplerCache(); g_object_cache->ClearSamplerCache();
} }
void Renderer::SetDitherMode()
{
}
void Renderer::SetInterlacingMode() void Renderer::SetInterlacingMode()
{ {
} }

View File

@ -60,7 +60,6 @@ public:
void SetScissorRect(const EFBRectangle& rc) override; void SetScissorRect(const EFBRectangle& rc) override;
void SetGenerationMode() override; void SetGenerationMode() override;
void SetDepthMode() override; void SetDepthMode() override;
void SetDitherMode() override;
void SetSamplerState(int stage, int texindex, bool custom_tex) override; void SetSamplerState(int stage, int texindex, bool custom_tex) override;
void SetInterlacingMode() override; void SetInterlacingMode() override;
void SetViewport() override; void SetViewport() override;

View File

@ -74,10 +74,7 @@ void SetBlendMode()
{ {
g_renderer->SetBlendMode(false); g_renderer->SetBlendMode(false);
} }
void SetDitherMode()
{
g_renderer->SetDitherMode();
}
void SetLogicOpMode() void SetLogicOpMode()
{ {
g_renderer->SetLogicOpMode(); g_renderer->SetLogicOpMode();

View File

@ -19,7 +19,6 @@ void SetGenerationMode();
void SetScissor(); void SetScissor();
void SetDepthMode(); void SetDepthMode();
void SetBlendMode(); void SetBlendMode();
void SetDitherMode();
void SetLogicOpMode(); void SetLogicOpMode();
void SetColorMask(); void SetColorMask();
void ClearScreen(const EFBRectangle& rc); void ClearScreen(const EFBRectangle& rc);

View File

@ -152,10 +152,6 @@ static void BPWritten(const BPCmd& bp)
if (bp.changes & 0xF002) // logicopenable | logicmode if (bp.changes & 0xF002) // logicopenable | logicmode
SetLogicOpMode(); SetLogicOpMode();
// Set Dithering Mode
if (bp.changes & 4) // dither
SetDitherMode();
// Set Color Mask // Set Color Mask
if (bp.changes & 0x18) // colorupdate | alphaupdate if (bp.changes & 0x18) // colorupdate | alphaupdate
SetColorMask(); SetColorMask();
@ -1383,7 +1379,6 @@ void BPReload()
SetScissor(); SetScissor();
SetDepthMode(); SetDepthMode();
SetLogicOpMode(); SetLogicOpMode();
SetDitherMode();
SetBlendMode(); SetBlendMode();
SetColorMask(); SetColorMask();
OnPixelFormatChange(); OnPixelFormatChange();

View File

@ -69,7 +69,6 @@ public:
virtual void SetGenerationMode() {} virtual void SetGenerationMode() {}
virtual void SetDepthMode() {} virtual void SetDepthMode() {}
virtual void SetLogicOpMode() {} virtual void SetLogicOpMode() {}
virtual void SetDitherMode() {}
virtual void SetSamplerState(int stage, int texindex, bool custom_tex) {} virtual void SetSamplerState(int stage, int texindex, bool custom_tex) {}
virtual void SetInterlacingMode() {} virtual void SetInterlacingMode() {}
virtual void SetViewport() {} virtual void SetViewport() {}