mirror of https://github.com/PCSX2/pcsx2.git
GSdx: disabled "gather" until I can sort it out
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1551 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
6aacb2899c
commit
3a569dba23
|
@ -304,23 +304,23 @@ float4x4 sample_4c(float4 uv)
|
|||
return c;
|
||||
}
|
||||
|
||||
float4 sample_4a(float4 uv)
|
||||
float4 sample_4a(float4 uv, float2 st)
|
||||
{
|
||||
float4 c;
|
||||
|
||||
#if SHADER_MODEL >= 0x401 && PS_LTF && PS_WMS < 2 && PS_WMT < 2
|
||||
/*
|
||||
#if SHADER_MODEL >= 0x401 && PS_FMT == FMT_8 && PS_LTF && PS_WMS < 2 && PS_WMT < 2
|
||||
|
||||
c = gather_c(uv.xy);
|
||||
c = gather_c(st); // the order of samples returned might not be the same as ours
|
||||
|
||||
#else
|
||||
|
||||
*/
|
||||
c.x = sample_c(uv.xy).a;
|
||||
c.y = sample_c(uv.zy).a;
|
||||
c.z = sample_c(uv.xw).a;
|
||||
c.w = sample_c(uv.zw).a;
|
||||
|
||||
/*
|
||||
#endif
|
||||
|
||||
*/
|
||||
#if SHADER_MODEL <= 0x300
|
||||
if(PS_RT) c *= 128.0f / 255;
|
||||
#endif
|
||||
|
@ -379,19 +379,19 @@ float4 sample(float2 st, float q)
|
|||
|
||||
if(PS_FMT == FMT_8H)
|
||||
{
|
||||
c = sample_4p(sample_4a(uv));
|
||||
c = sample_4p(sample_4a(uv, st.xy));
|
||||
}
|
||||
else if(PS_FMT == FMT_4HL)
|
||||
{
|
||||
c = sample_4p(fmod(sample_4a(uv), 1.0f / 16));
|
||||
c = sample_4p(fmod(sample_4a(uv, st.xy), 1.0f / 16));
|
||||
}
|
||||
else if(PS_FMT == FMT_4HH)
|
||||
{
|
||||
c = sample_4p(fmod(sample_4a(uv) * 16, 1.0f / 16));
|
||||
c = sample_4p(fmod(sample_4a(uv, st.xy) * 16, 1.0f / 16));
|
||||
}
|
||||
else if(PS_FMT == FMT_8)
|
||||
{
|
||||
c = sample_4p(sample_4a(uv));
|
||||
c = sample_4p(sample_4a(uv, st.xy));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue