gsdx glsl/fx: Remove unused Uber_ATST shader code.

This commit is contained in:
lightningterror 2020-07-22 23:20:26 +02:00
parent f44f676cce
commit 25bf39e895
3 changed files with 2 additions and 51 deletions

View File

@ -80,8 +80,7 @@ layout(std140, binding = 21) uniform cb21
vec4 WH;
vec2 TA;
//float _pad0;
int Uber_ATST;
float pad0_cb21;
float Af;
uvec4 MskFix;
@ -95,7 +94,7 @@ layout(std140, binding = 21) uniform cb21
vec2 TextureScale;
vec2 TC_OffsetHack;
vec3 pad_cb21;
vec3 pad1_cb21;
float MaxDepthPS;
mat4 DitherMatrix;

View File

@ -530,29 +530,6 @@ void atst(vec4 C)
{
float a = C.a;
#if 0
switch(Uber_ATST) {
case 0:
break;
case 1:
if (a > AREF) discard;
break;
case 2:
if (a < AREF) discard;
break;
case 3:
if (abs(a - AREF) > 0.5f) discard;
break;
case 4:
if (abs(a - AREF) < 0.5f) discard;
break;
}
#endif
#if 1
#if (PS_ATST == 0)
// nothing to do
#elif (PS_ATST == 1)
@ -564,9 +541,6 @@ void atst(vec4 C)
#elif (PS_ATST == 4)
if (abs(a - AREF) < 0.5f) discard;
#endif
#endif
}
void fog(inout vec4 C, float f)

View File

@ -564,27 +564,6 @@ void atst(float4 C)
{
float a = C.a;
#if 0
switch(Uber_ATST) {
case 0:
break;
case 1:
if (a > AREF) discard;
break;
case 2:
if (a < AREF) discard;
break;
case 3:
if (abs(a - AREF) > 0.5f) discard;
break;
case 4:
if (abs(a - AREF) < 0.5f) discard;
break;
}
#endif
#if 1
if(PS_ATST == 0)
{
// nothing to do
@ -605,7 +584,6 @@ void atst(float4 C)
{
if (abs(a - AREF) < 0.5f) discard;
}
#endif
}
float4 fog(float4 c, float f)