GSdx: Some fixes.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2066 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-10-24 18:39:36 +00:00
parent 66d92503aa
commit e8d858c675
3 changed files with 28 additions and 18 deletions

View File

@ -123,6 +123,7 @@ public:
} }
else else
{ {
//Breath of Fire Dragon Quarter triggers this in battles. Graphics are fine though.
ASSERT(0); ASSERT(0);
} }
} }
@ -144,20 +145,28 @@ public:
{ {
if(m_vt.m_max.p.z > 0xffffff) if(m_vt.m_max.p.z > 0xffffff)
{ {
ASSERT(m_vt.m_min.p.z > 0xffffff); //ASSERT(m_vt.m_min.p.z > 0xffffff);
// Fixme :Following conditional fixes some dialog frame in Wild Arms 3, but may not be what was intended.
vs_sel.bppz = 1; if (m_vt.m_min.p.z > 0xffffff)
om_dssel.ztst = ZTST_ALWAYS; {
vs_sel.bppz = 1;
om_dssel.ztst = ZTST_ALWAYS;
}
//else printf ("GSdx: Z issue, please report\n");
} }
} }
else if(context->ZBUF.PSM == PSM_PSMZ16 || context->ZBUF.PSM == PSM_PSMZ16S) else if(context->ZBUF.PSM == PSM_PSMZ16 || context->ZBUF.PSM == PSM_PSMZ16S)
{ {
if(m_vt.m_max.p.z > 0xffff) if(m_vt.m_max.p.z > 0xffff)
{ {
ASSERT(m_vt.m_min.p.z > 0xffff); // sfex capcom logo //ASSERT(m_vt.m_min.p.z > 0xffff); // sfex capcom logo
// Fixme : Same as above, I guess.
vs_sel.bppz = 2; if (m_vt.m_min.p.z > 0xffff)
om_dssel.ztst = ZTST_ALWAYS; {
vs_sel.bppz = 2;
om_dssel.ztst = ZTST_ALWAYS;
}
//else printf ("GSdx: Z issue, please report\n");
} }
} }
} }

View File

@ -139,10 +139,10 @@ void GSSettingsDlg::OnInit()
CheckDlgButton(m_hWnd, IDC_BLUR, theApp.GetConfig("blur", 0)); CheckDlgButton(m_hWnd, IDC_BLUR, theApp.GetConfig("blur", 0));
CheckDlgButton(m_hWnd, IDC_NATIVERES, theApp.GetConfig("nativeres", 0)); CheckDlgButton(m_hWnd, IDC_NATIVERES, theApp.GetConfig("nativeres", 0));
SendMessage(GetDlgItem(m_hWnd, IDC_RESX), UDM_SETRANGE, 0, MAKELPARAM(4096, 512)); SendMessage(GetDlgItem(m_hWnd, IDC_RESX), UDM_SETRANGE, 0, MAKELPARAM(8192, 256));
SendMessage(GetDlgItem(m_hWnd, IDC_RESX), UDM_SETPOS, 0, MAKELPARAM(theApp.GetConfig("resx", 1024), 0)); SendMessage(GetDlgItem(m_hWnd, IDC_RESX), UDM_SETPOS, 0, MAKELPARAM(theApp.GetConfig("resx", 1024), 0));
SendMessage(GetDlgItem(m_hWnd, IDC_RESY), UDM_SETRANGE, 0, MAKELPARAM(4096, 512)); SendMessage(GetDlgItem(m_hWnd, IDC_RESY), UDM_SETRANGE, 0, MAKELPARAM(8192, 256));
SendMessage(GetDlgItem(m_hWnd, IDC_RESY), UDM_SETPOS, 0, MAKELPARAM(theApp.GetConfig("resy", 1024), 0)); SendMessage(GetDlgItem(m_hWnd, IDC_RESY), UDM_SETPOS, 0, MAKELPARAM(theApp.GetConfig("resy", 1024), 0));
SendMessage(GetDlgItem(m_hWnd, IDC_SWTHREADS), UDM_SETRANGE, 0, MAKELPARAM(16, 1)); SendMessage(GetDlgItem(m_hWnd, IDC_SWTHREADS), UDM_SETRANGE, 0, MAKELPARAM(16, 1));

View File

@ -600,15 +600,16 @@ GSTextureCache::Source* GSTextureCache::CreateSource(const GIFRegTEX0& TEX0, con
} }
} }
} }
//else if(tw < tp) else if(tw < tp)
//{ {
// // FIXME: timesplitters blurs the render target by blending itself over a couple of times // FIXME: timesplitters blurs the render target by blending itself over a couple of times
// if(tw == 256 && th == 128 && tp == 512 && (TEX0.TBP0 == 0 || TEX0.TBP0 == 0x00e00)) if(tw == 256 && th == 128 && tp == 512 && (TEX0.TBP0 == 0 || TEX0.TBP0 == 0x00e00))
// { {
// return false; delete src;
// } return false;
//} }
}
// width/height conversion // width/height conversion
GSVector2 scale = dst->m_texture->GetScale(); GSVector2 scale = dst->m_texture->GetScale();