GSdx: Applied normalization of UV in the DX9 texture repeat shader, allowing it to be re-enabled. Fixes massive slowdown in the Xenosaga 2 opening menu (Issue 262 / DX9 only) [note: collective fix uncovered by sudonim, feal87, and drk||raziel -- I'm just the patching boy]

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1340 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-06-06 11:00:30 +00:00
parent 8784c1cd43
commit 95ff8e3a98
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
#include "resource.h"
GSRendererHW9::GSRendererHW9(uint8* base, bool mt, void (*irq)())
: GSRendererHW<GSVertexHW9>(base, mt, irq, new GSDevice9(), new GSTextureCache9(this), false)
: GSRendererHW<GSVertexHW9>(base, mt, irq, new GSDevice9(), new GSTextureCache9(this), true)
{
m_fba.enabled = !!theApp.GetConfig("fba", 1);
m_logz = !!theApp.GetConfig("logz", 0);

View File

@ -116,12 +116,12 @@ sampler1D VMSKFIX : register(s3);
float repeatu(float tc)
{
return WMS == 3 ? tex1D(UMSKFIX, tc) : tc;
return WMS == 3 ? tex1D(UMSKFIX, tc*rWrH.x)* WH.x : tc;
}
float repeatv(float tc)
{
return WMT == 3 ? tex1D(VMSKFIX, tc) : tc;
return WMT == 3 ? tex1D(VMSKFIX, tc*rWrH.y)* WH.y : tc;
}
float4 sample(float2 tc)