mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
8784c1cd43
commit
95ff8e3a98
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue