mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Adjust God of War 1 and 2 crc hacks.
Move texture shuffle (shadows) hack to aggressive state. Adjust water/hell effect crc hack - don't enable hack on native res if crc is below aggressive, enable if resolution is higher on dx and gl state.
This commit is contained in:
parent
e87a6b9ccd
commit
a8c2076d04
|
@ -1361,10 +1361,11 @@ bool GSC_GodOfWar(const GSFrameInfo& fi, int& skip)
|
|||
{
|
||||
if(skip == 0)
|
||||
{
|
||||
if(fi.TME && fi.FBP == 0x00000 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00000 && fi.TPSM == PSM_PSMCT16 && fi.FBMSK == 0x03FFF)
|
||||
if(Aggressive && fi.TME && fi.FBP == 0x00000 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00000 && fi.TPSM == PSM_PSMCT16 && fi.FBMSK == 0x03FFF)
|
||||
{
|
||||
// Texture shuffle. Not supported on D3D9.
|
||||
// Can be used as a speed hack.
|
||||
// Removes shadows.
|
||||
skip = 1000;
|
||||
}
|
||||
else if(fi.TME && fi.FBP == 0x00000 && fi.FPSM == PSM_PSMCT32 && fi.TBP0 == 0x00000 && fi.TPSM == PSM_PSMCT32 && fi.FBMSK == 0xff000000)
|
||||
|
@ -1393,12 +1394,15 @@ bool GSC_GodOfWar2(const GSFrameInfo& fi, int& skip)
|
|||
{
|
||||
if(fi.TME)
|
||||
{
|
||||
if( fi.FBP == 0x00100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00100 && fi.TPSM == PSM_PSMCT16 // ntsc
|
||||
if(Aggressive && fi.FBP == 0x00100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x00100 && fi.TPSM == PSM_PSMCT16 // ntsc
|
||||
|| fi.FBP == 0x02100 && fi.FPSM == PSM_PSMCT16 && fi.TBP0 == 0x02100 && fi.TPSM == PSM_PSMCT16) // pal
|
||||
{
|
||||
skip = 1000; // shadows
|
||||
// Texture shuffle. Not supported on D3D9.
|
||||
// Can be used as a speed hack.
|
||||
// Removes shadows.
|
||||
skip = 1000;
|
||||
}
|
||||
if((fi.FBP == 0x00100 || fi.FBP == 0x02100) && fi.FPSM == PSM_PSMCT32 && (fi.TBP0 & 0x03000) == 0x03000
|
||||
else if((fi.FBP == 0x00100 || fi.FBP == 0x02100) && fi.FPSM == PSM_PSMCT32 && (fi.TBP0 & 0x03000) == 0x03000
|
||||
&& (fi.TPSM == PSM_PSMT8 || fi.TPSM == PSM_PSMT4)
|
||||
&& ((fi.TZTST == 2 && fi.FBMSK == 0x00FFFFFF) || (fi.TZTST == 1 && fi.FBMSK == 0x00FFFFFF) || (fi.TZTST == 3 && fi.FBMSK == 0xFF000000)))
|
||||
{
|
||||
|
@ -1408,8 +1412,10 @@ bool GSC_GodOfWar2(const GSFrameInfo& fi, int& skip)
|
|||
{
|
||||
skip = 1; // global haze/halo
|
||||
}
|
||||
else if(Aggressive && fi.TPSM == PSM_PSMCT24 && fi.TME && (fi.FBP == 0x0100 || fi.FBP == 0x2100) && (fi.TBP0 == 0x2b00 || fi.TBP0 == 0x2e80) || fi.TBP0 == 0x3100) // 480P 2e80, interlaced 3100
|
||||
else if((Aggressive || !s_nativeres) && fi.TPSM == PSM_PSMCT24 && fi.TME && (fi.FBP == 0x0100 || fi.FBP == 0x2100) && (fi.TBP0 == 0x2b00 || fi.TBP0 == 0x2e80) || fi.TBP0 == 0x3100) // 480P 2e80, interlaced 3100
|
||||
{
|
||||
// Upscaling issue.
|
||||
// Don't enable hack on native res if crc is below aggressive.
|
||||
skip = 1; // water effect and water vertical lines
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue