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,17 +821,10 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou
|
|||
// 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);
|
||||
}
|
||||
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);
|
||||
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);
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
else if (!m_om_bsel.wa && !m_context->TEST.ATE)
|
||||
|
|
|
@ -1048,25 +1048,18 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
m_require_full_barrier = true;
|
||||
DATE_GL45 = true;
|
||||
}
|
||||
else
|
||||
else if (m_accurate_date)
|
||||
{
|
||||
// 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);
|
||||
if (GLLoader::found_GL_ARB_shader_image_load_store && GLLoader::found_GL_ARB_clear_texture)
|
||||
{
|
||||
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)
|
||||
{
|
||||
DATE_GL42 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_require_full_barrier = true;
|
||||
DATE_GL45 = true;
|
||||
}
|
||||
DATE_GL42 = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
GL_PERF("DATE: Off AD with alpha %d-%d", m_vt.m_alpha.min, m_vt.m_alpha.max);
|
||||
m_require_full_barrier = true;
|
||||
DATE_GL45 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue