gsdx: move alpha test optimization in base class

One code for all renderers :)
This commit is contained in:
Gregory Hainaut committed 2016-09-19 08:48:32 +02:00
1 parent 38b77397e0
commit 6966e08306
7 files changed
+17 -78

No files matched your search

@@ -2179,21 +2179,6 @@ void GSDrawScanlineCodeGenerator::ReadMask()
void GSDrawScanlineCodeGenerator::TestAlpha()
{
switch(m_sel.afail)
{
case AFAIL_FB_ONLY:
if(!m_sel.zwrite) return;
break;
case AFAIL_ZB_ONLY:
if(!m_sel.fwrite) return;
break;
case AFAIL_RGB_ONLY:
if(!m_sel.zwrite && m_sel.fpsm == 1) return;
break;
}
switch(m_sel.atst)
{
case ATST_NEVER: