Skip to content

Commit

Permalink
Gsdx: Adjust Ikkitousen CRC hacks.
Browse files Browse the repository at this point in the history
Move hacks that disabled shadows to DX level since OpenGL renders
shadows properly with Depth Emulation.

Some other upscaling issues appear with the disabled hack like a small
black border on the bottom of the screen or some ui elements but those
can be fixed with TC X,Y Offset hack.
  • Loading branch information
lightningterror authored and ssakash committed Feb 21, 2018
1 parent 6444237 commit 768a441
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions plugins/GSdx/GSHwHack.cpp
Expand Up @@ -217,16 +217,16 @@ bool GSC_Spartan(const GSFrameInfo& fi, int& skip)
}
else
{
if(fi.TME)
if(fi.TME)
{
// depth textures (bully, mgs3s1 intro, Front Mission 5)
if( (fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) ||
// General, often problematic post processing
(GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) )
{
// depth textures (bully, mgs3s1 intro, Front Mission 5)
if( (fi.TPSM == PSM_PSMZ32 || fi.TPSM == PSM_PSMZ24 || fi.TPSM == PSM_PSMZ16 || fi.TPSM == PSM_PSMZ16S) ||
// General, often problematic post processing
(GSUtil::HasSharedBits(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM)) )
{
skip = 1;
}
skip = 1;
}
}
}
}

Expand All @@ -237,7 +237,7 @@ bool GSC_IkkiTousen(const GSFrameInfo& fi, int& skip)
{
if(skip == 0)
{
if(fi.TME && fi.FBP == 0x00a80 && fi.FPSM == PSM_PSMZ24 && fi.TBP0 == 0x01180 && fi.TPSM == PSM_PSMZ24)
if(Dx_only && fi.TME && fi.FBP == 0x00a80 && fi.FPSM == PSM_PSMZ24 && fi.TBP0 == 0x01180 && fi.TPSM == PSM_PSMZ24)
{
skip = 1000; // shadow (result is broken without depth copy, also includes 16 bit)
}
Expand All @@ -248,7 +248,7 @@ bool GSC_IkkiTousen(const GSFrameInfo& fi, int& skip)
}
else if(skip > 7)
{
if(fi.TME && fi.FBP == 0x00700 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00700 && fi.TPSM == PSM_PSMCT16)
if(Dx_only && fi.TME && fi.FBP == 0x00700 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00700 && fi.TPSM == PSM_PSMCT16)
{
skip = 7; // the last steps of shadow drawing
}
Expand Down Expand Up @@ -291,9 +291,6 @@ bool GSC_Genji(const GSFrameInfo& fi, int& skip)
skip = 1;
}
}
else
{
}

return true;
}
Expand All @@ -317,9 +314,9 @@ bool GSC_CaptainTsubasa(const GSFrameInfo& fi, int& skip)
if(skip == 0)
{
if(fi.TME && fi.FBP == 0x1C00 && !fi.FBMSK)
{
skip = 1;
}
{
skip = 1;
}
}
return true;
}
Expand Down

0 comments on commit 768a441

Please sign in to comment.