mirror of https://github.com/PCSX2/pcsx2.git
gsdx state: split IsMipmapActive in 2 pieces
This way we can test if a draw call requires a triliner filtering. It will be used in next commit to implement automatic trilinear
This commit is contained in:
parent
1b9b47dd6a
commit
c2777ff989
|
@ -3183,9 +3183,14 @@ bool GSState::IsOpaque()
|
||||||
return context->ALPHA.IsOpaque(amin, amax);
|
return context->ALPHA.IsOpaque(amin, amax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GSState::IsMipMapDraw()
|
||||||
|
{
|
||||||
|
return m_context->TEX1.MXL > 0 && m_context->TEX1.MMIN >= 2 && m_context->TEX1.MMIN <= 5 && m_vt.m_lod.y > 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool GSState::IsMipMapActive()
|
bool GSState::IsMipMapActive()
|
||||||
{
|
{
|
||||||
return m_mipmap && m_context->TEX1.MXL > 0 && m_context->TEX1.MMIN >= 2 && m_context->TEX1.MMIN <= 5 && m_vt.m_lod.y > 0;
|
return m_mipmap && IsMipMapDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
GIFRegTEX0 GSState::GetTex0Layer(int lod)
|
GIFRegTEX0 GSState::GetTex0Layer(int lod)
|
||||||
|
|
|
@ -204,6 +204,7 @@ protected:
|
||||||
void GetAlphaMinMax();
|
void GetAlphaMinMax();
|
||||||
bool TryAlphaTest(uint32& fm, uint32& zm);
|
bool TryAlphaTest(uint32& fm, uint32& zm);
|
||||||
bool IsOpaque();
|
bool IsOpaque();
|
||||||
|
bool IsMipMapDraw();
|
||||||
bool IsMipMapActive();
|
bool IsMipMapActive();
|
||||||
GIFRegTEX0 GetTex0Layer(int lod);
|
GIFRegTEX0 GetTex0Layer(int lod);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue