GS-hw: Remove fbmask check for Genji.

Fb will be read when primitives don't overlap, no need for the mask check now.
This commit is contained in:
lightningterror 2022-01-18 02:17:17 +01:00
parent f089ef3fbe
commit 8cb680f34e
1 changed files with 2 additions and 2 deletions

View File

@ -206,13 +206,13 @@ void GSRendererNew::EmulateTextureShuffleAndFbmask()
case AccBlendLevel::Medium: case AccBlendLevel::Medium:
// Enable Fbmask emulation excluding triangle class because it is quite slow. // Enable Fbmask emulation excluding triangle class because it is quite slow.
// Exclude 0x80000000 because Genji needs sw blending, otherwise it breaks some effects. // Exclude 0x80000000 because Genji needs sw blending, otherwise it breaks some effects.
enable_fbmask_emulation = ((m_vt.m_primclass != GS_TRIANGLE_CLASS) && (m_context->FRAME.FBMSK != 0x80000000)); enable_fbmask_emulation = (m_vt.m_primclass != GS_TRIANGLE_CLASS);
break; break;
case AccBlendLevel::Basic: case AccBlendLevel::Basic:
// Enable Fbmask emulation excluding triangle class because it is quite slow. // Enable Fbmask emulation excluding triangle class because it is quite slow.
// Exclude 0x80000000 because Genji needs sw blending, otherwise it breaks some effects. // Exclude 0x80000000 because Genji needs sw blending, otherwise it breaks some effects.
// Also exclude fbmask emulation on texture shuffle just in case, it is probably safe tho. // Also exclude fbmask emulation on texture shuffle just in case, it is probably safe tho.
enable_fbmask_emulation = (!m_texture_shuffle && (m_vt.m_primclass != GS_TRIANGLE_CLASS) && (m_context->FRAME.FBMSK != 0x80000000)); enable_fbmask_emulation = !m_texture_shuffle && (m_vt.m_primclass != GS_TRIANGLE_CLASS);
break; break;
case AccBlendLevel::Minimum: case AccBlendLevel::Minimum:
break; break;