mirror of https://github.com/PCSX2/pcsx2.git
gsdx-hw: Get rid of some extra branches/conditions in DATE selection.
This commit is contained in:
parent
e96d316d41
commit
dabfff8b35
|
@ -821,18 +821,11 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou
|
||||||
// Leave the check in to make sure other DATE cases are triggered correctly.
|
// Leave the check in to make sure other DATE cases are triggered correctly.
|
||||||
// fprintf(stderr, "%d: DATE: Slow with alpha %d-%d not supported\n", s_n, m_vt.m_alpha.min, m_vt.m_alpha.max);
|
// fprintf(stderr, "%d: DATE: Slow with alpha %d-%d not supported\n", s_n, m_vt.m_alpha.min, m_vt.m_alpha.max);
|
||||||
}
|
}
|
||||||
else
|
else if (m_accurate_date)
|
||||||
{
|
|
||||||
if (m_accurate_date)
|
|
||||||
{
|
{
|
||||||
// fprintf(stderr, "%d: DATE: Fast AD with alpha %d-%d\n", s_n, m_vt.m_alpha.min, m_vt.m_alpha.max);
|
// fprintf(stderr, "%d: DATE: Fast AD with alpha %d-%d\n", s_n, m_vt.m_alpha.min, m_vt.m_alpha.max);
|
||||||
DATE_one = true;
|
DATE_one = true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// fprintf(stderr, "%d: "DATE: Off AD with alpha %d-%d\n", s_n, m_vt.m_alpha.min, m_vt.m_alpha.max);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (!m_om_bsel.wa && !m_context->TEST.ATE)
|
else if (!m_om_bsel.wa && !m_context->TEST.ATE)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1048,11 +1048,9 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
||||||
m_require_full_barrier = true;
|
m_require_full_barrier = true;
|
||||||
DATE_GL45 = true;
|
DATE_GL45 = true;
|
||||||
}
|
}
|
||||||
else
|
else if (m_accurate_date)
|
||||||
{
|
{
|
||||||
// Note: Fast level (DATE_one) was removed as it's less accurate.
|
// Note: Fast level (DATE_one) was removed as it's less accurate.
|
||||||
if (m_accurate_date)
|
|
||||||
{
|
|
||||||
GL_PERF("DATE: Full AD with alpha %d-%d", m_vt.m_alpha.min, m_vt.m_alpha.max);
|
GL_PERF("DATE: Full AD with alpha %d-%d", m_vt.m_alpha.min, m_vt.m_alpha.max);
|
||||||
if (GLLoader::found_GL_ARB_shader_image_load_store && GLLoader::found_GL_ARB_clear_texture)
|
if (GLLoader::found_GL_ARB_shader_image_load_store && GLLoader::found_GL_ARB_clear_texture)
|
||||||
{
|
{
|
||||||
|
@ -1064,11 +1062,6 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
||||||
DATE_GL45 = true;
|
DATE_GL45 = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
GL_PERF("DATE: Off AD with alpha %d-%d", m_vt.m_alpha.min, m_vt.m_alpha.max);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (!m_om_csel.wa && !m_context->TEST.ATE)
|
else if (!m_om_csel.wa && !m_context->TEST.ATE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue