gsdx hw: remove code to detect an effect

It was a tentative to emulate GTA radiosity but the new hack is more generic
This commit is contained in:
Gregory Hainaut 2016-10-02 18:28:40 +02:00
parent 7dcf1cbf90
commit 3be055a366
2 changed files with 1 additions and 10 deletions

View File

@ -31,7 +31,6 @@ GSRendererHW::GSRendererHW(GSTextureCache* tc)
, m_upscale_multiplier(1) , m_upscale_multiplier(1)
, m_tc(tc) , m_tc(tc)
, m_channel_shuffle(false) , m_channel_shuffle(false)
, m_double_downscale(false)
, m_ATE(false) , m_ATE(false)
{ {
m_upscale_multiplier = theApp.GetConfigI("upscale_multiplier"); m_upscale_multiplier = theApp.GetConfigI("upscale_multiplier");
@ -454,22 +453,15 @@ void GSRendererHW::Draw()
} }
} else if (draw_sprite_tex && m_context->FRAME.Block() == m_context->TEX0.TBP0) { } else if (draw_sprite_tex && m_context->FRAME.Block() == m_context->TEX0.TBP0) {
// Special post-processing effect // Special post-processing effect
if (m_vertex.next == 4) { if ((m_context->TEX0.PSM == PSM_PSMT8) && single_page) {
// Note potentially we could also check the content of vertex (2nd
// sprite must be half of the first one)
GL_INS("Double downscale effect detected");
m_double_downscale = true;
} else if ((m_context->TEX0.PSM == PSM_PSMT8) && single_page) {
GL_INS("Channel shuffle effect detected"); GL_INS("Channel shuffle effect detected");
m_channel_shuffle = true; m_channel_shuffle = true;
} else { } else {
GL_INS("Special post-processing effect not supported"); GL_INS("Special post-processing effect not supported");
m_channel_shuffle = false; m_channel_shuffle = false;
m_double_downscale = false;
} }
} else { } else {
m_channel_shuffle = false; m_channel_shuffle = false;
m_double_downscale = false;
} }
GIFRegTEX0 TEX0; GIFRegTEX0 TEX0;

View File

@ -153,7 +153,6 @@ protected:
int m_userhacks_round_sprite_offset; int m_userhacks_round_sprite_offset;
bool m_channel_shuffle; bool m_channel_shuffle;
bool m_double_downscale;
bool m_ATE; bool m_ATE;
public: public: