gsdx-hw: Get rid of some extra branches/conditions in DATE selection.

This commit is contained in:
lightningterror 2021-01-25 23:17:42 +01:00
parent e96d316d41
commit dabfff8b35
2 changed files with 9 additions and 23 deletions

View File

@ -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. // 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);
{ DATE_one = true;
// 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);
}
} }
} }
else if (!m_om_bsel.wa && !m_context->TEST.ATE) else if (!m_om_bsel.wa && !m_context->TEST.ATE)

View File

@ -1048,25 +1048,18 @@ 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);
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); DATE_GL42 = true;
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;
}
} }
else 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;
} }
} }
} }