mirror of https://github.com/PCSX2/pcsx2.git
gsdx: remove old code
This commit is contained in:
parent
1addae1993
commit
3c66da4d82
|
@ -62,32 +62,6 @@ GSRendererHW::GSRendererHW(GSTextureCache* tc)
|
|||
m_userhacks_round_sprite_offset = 0;
|
||||
m_userhacks_align_sprite_X = 0;
|
||||
}
|
||||
|
||||
// When you upscale sprite will sample invalid data of the texture. The idea is to add a subtexel offset
|
||||
// so the sampling remains inside the texture.
|
||||
// The strict minimal value can be computed with this formulae (you need to round above, [1;2[ must be rounded to 2).
|
||||
//
|
||||
// s: m_upscale_multiplier
|
||||
// WH: Width or Height of the texture
|
||||
// 0.5: initial offset of texture (not sure it is always true)
|
||||
// L: length of primitive in pixels (after upscaling)
|
||||
//
|
||||
// Full formulae is
|
||||
// 0.5 + (L - 1)* (WH-offset)/L < WH
|
||||
//
|
||||
// A reduced formulae is: (hypothesis 1:1 mapping => L == s*WH)
|
||||
// offset > ((0.5)*s -1)/(s-1/WH)*16
|
||||
//
|
||||
// Rendering is perfect for 2x but some issues remains on higher scaling
|
||||
switch (m_upscale_multiplier) {
|
||||
case 1: m_sub_texel_offset = 0; break;
|
||||
case 2: m_sub_texel_offset = 1; break;
|
||||
case 3: m_sub_texel_offset = 3; break; // texture of 2 texels need 4 (Is is used?)
|
||||
case 4: m_sub_texel_offset = 5; break;
|
||||
case 5: m_sub_texel_offset = 6; break;
|
||||
case 6: m_sub_texel_offset = 6; break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
GSRendererHW::~GSRendererHW()
|
||||
|
|
|
@ -35,7 +35,6 @@ private:
|
|||
bool m_reset;
|
||||
int m_upscale_multiplier;
|
||||
int m_userhacks_skipdraw;
|
||||
int m_sub_texel_offset;
|
||||
|
||||
bool m_userhacks_align_sprite_X;
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ GSRendererOGL::GSRendererOGL()
|
|||
UserHacks_AlphaHack = theApp.GetConfig("UserHacks_AlphaHack", 0);
|
||||
UserHacks_AlphaStencil = theApp.GetConfig("UserHacks_AlphaStencil", 0);
|
||||
UserHacks_DateGL4 = theApp.GetConfig("UserHacks_DateGL4", 0);
|
||||
UserHacks_Unscale_sprite = theApp.GetConfig("UserHacks_UnscaleSprite", 0);
|
||||
UserHacks_TCOffset = theApp.GetConfig("UserHacks_TCOffset", 0);
|
||||
UserHacks_TCO_x = (UserHacks_TCOffset & 0xFFFF) / -1000.0f;
|
||||
UserHacks_TCO_y = ((UserHacks_TCOffset >> 16) & 0xFFFF) / -1000.0f;
|
||||
|
@ -45,7 +44,6 @@ GSRendererOGL::GSRendererOGL()
|
|||
UserHacks_AlphaHack = false;
|
||||
UserHacks_AlphaStencil = false;
|
||||
UserHacks_DateGL4 = false;
|
||||
UserHacks_Unscale_sprite = 0;
|
||||
UserHacks_TCOffset = 0;
|
||||
UserHacks_TCO_x = 0;
|
||||
UserHacks_TCO_y = 0;
|
||||
|
|
|
@ -38,7 +38,6 @@ class GSRendererOGL : public GSRendererHW
|
|||
bool UserHacks_AlphaHack;
|
||||
bool UserHacks_AlphaStencil;
|
||||
bool UserHacks_DateGL4;
|
||||
int UserHacks_Unscale_sprite;
|
||||
unsigned int UserHacks_TCOffset;
|
||||
float UserHacks_TCO_x, UserHacks_TCO_y;
|
||||
|
||||
|
|
Loading…
Reference in New Issue