mirror of https://github.com/PCSX2/pcsx2.git
gsdx-hw: EmulateAtst -> Remove unused tex parameter
This commit is contained in:
parent
246dab3375
commit
a15d3d5811
|
@ -993,7 +993,7 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou
|
|||
}
|
||||
else
|
||||
{
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false);
|
||||
m_ps_sel.atst = ps_atst;
|
||||
}
|
||||
|
||||
|
@ -1083,13 +1083,13 @@ void GSRendererDX11::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sou
|
|||
{
|
||||
// Enable ATE as first pass to update the depth
|
||||
// of pixels that passed the alpha test
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// second pass will process the pixels that failed
|
||||
// the alpha test
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, true);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, true);
|
||||
}
|
||||
|
||||
m_ps_sel.atst = ps_atst;
|
||||
|
|
|
@ -438,7 +438,7 @@ void GSRendererHW::Lines2Sprites()
|
|||
}
|
||||
}
|
||||
|
||||
void GSRendererHW::EmulateAtst(const GSTextureCache::Source* tex, GSVector4& FogColor_AREF, uint8& ps_atst, const bool pass_2)
|
||||
void GSRendererHW::EmulateAtst(GSVector4& FogColor_AREF, uint8& ps_atst, const bool pass_2)
|
||||
{
|
||||
static const uint32 inverted_atst[] = {ATST_ALWAYS, ATST_NEVER, ATST_GEQUAL, ATST_GREATER, ATST_NOTEQUAL, ATST_LESS, ATST_LEQUAL, ATST_EQUAL};
|
||||
|
||||
|
@ -476,7 +476,6 @@ void GSRendererHW::EmulateAtst(const GSTextureCache::Source* tex, GSVector4& Fog
|
|||
FogColor_AREF.a = (float)m_context->TEST.AREF;
|
||||
ps_atst = 4;
|
||||
break;
|
||||
|
||||
case ATST_NEVER: // Draw won't be done so no need to implement it in shader
|
||||
case ATST_ALWAYS:
|
||||
default:
|
||||
|
|
|
@ -175,7 +175,7 @@ public:
|
|||
GSVector2i GetCustomResolution();
|
||||
void SetScaling();
|
||||
void Lines2Sprites();
|
||||
void EmulateAtst(const GSTextureCache::Source* tex, GSVector4& FogColor_AREF, uint8& atst, const bool pass_2);
|
||||
void EmulateAtst(GSVector4& FogColor_AREF, uint8& atst, const bool pass_2);
|
||||
void ConvertSpriteTextureShuffle(bool& write_ba, bool& read_ba);
|
||||
GSVector4 RealignTargetTextureCoordinate(const GSTextureCache::Source* tex);
|
||||
GSVector4i ComputeBoundingBox(const GSVector2& rtscale, const GSVector2i& rtsize);
|
||||
|
|
|
@ -1219,7 +1219,7 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
m_om_dssel.zwe = false;
|
||||
m_om_csel.wa = false;
|
||||
} else {
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false);
|
||||
m_ps_sel.atst = ps_atst;
|
||||
}
|
||||
|
||||
|
@ -1336,13 +1336,13 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
|
|||
{
|
||||
// Enable ATE as first pass to update the depth
|
||||
// of pixels that passed the alpha test
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, false);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// second pass will process the pixels that failed
|
||||
// the alpha test
|
||||
EmulateAtst(tex, ps_cb.FogColor_AREF, ps_atst, true);
|
||||
EmulateAtst(ps_cb.FogColor_AREF, ps_atst, true);
|
||||
}
|
||||
|
||||
m_ps_sel.atst = ps_atst;
|
||||
|
|
Loading…
Reference in New Issue