Skip to content

Commit

Permalink
GSdx-d3d11: Redo destination format and alpha output.
Browse files Browse the repository at this point in the history
Dfmt in texture shuffle function already picks the 16 format on slot 2
so it's better to let it call the shader instead of aout.

We can keep old aout code until FbMask emulation is added on d3d11. We
can purge aout along with alpha hack then.
Added fixme note.
  • Loading branch information
lightningterror committed Dec 18, 2018
1 parent 0c0e0e9 commit 1a61148
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/GSdx/Renderers/DXCommon/GSRendererDX.cpp
Expand Up @@ -583,14 +583,16 @@ void GSRendererDX::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc
m_ps_sel.clr1 = m_om_bsel.IsCLR1();
m_ps_sel.fba = m_context->FBA.FBA;

// FIXME: Purge aout with AlphaHack when FbMask emulation is added.
if (m_ps_sel.shuffle)
{
m_ps_sel.aout = 0;
}
else
{
m_ps_sel.aout = UserHacks_AlphaHack || m_context->FRAME.PSM == PSM_PSMCT16 || m_context->FRAME.PSM == PSM_PSMCT16S || (m_context->FRAME.FBMSK & 0xff000000) == 0x7f000000 ? 1 : 0;
m_ps_sel.aout = UserHacks_AlphaHack || (m_context->FRAME.FBMSK & 0xff000000) == 0x7f000000;
}
// END OF FIXME

if (PRIM->FGE)
{
Expand Down

0 comments on commit 1a61148

Please sign in to comment.