GCMemcard: fix edge case of adding to a fragmented memcard.

allocates last block of memcard, and then wraps around, instead of attempting to write past the end of the card
VideoCommon: fix indirect texture coordinate computation in TEV.

Even if an indirect texture stage doesn't actually sample a texture, we
still need to emit the relevant math.

Fixes Issue 7092.
VideoCommon: correctly compute whether an indirect texture stage is active.

This is consistent with the implementation in PixelShaderGen.
Enables usage of GLSL textureSize on Qualcomm v66.

Qualcomm's v66 drivers have a working textureSize() function now.
Enable usage of it.
ogl: fix signed vs unsigned comparison warning
ShaderGen/D3D: inline centroid
ShaderGen: merge early-z blocks of ogl+d3d
ShaderGen: use cbuffers for D3D
ShaderGen: inline constant shaders
PixelShaderGen: drop fmod as it isn't used any more
PixelShaderGen: extract iround
ShaderGen: make clipPos readonly
ShaderGen: OGL: don't make a copy of "Normal"
ShaderGen: make uv readonly
Merge pull request #344 from magumagu/tev-indirect

VideoCommon: fix indirect texture coordinate computation in TEV.
Merge pull request #345 from Sonicadvance1/Qualcomm-textureSize

Enables usage of GLSL textureSize on Qualcomm v66.
OpenGL: delete unused function parameter in TextureConverter.

(While I'm here, also mark some functions static.)
VideoInterface: accurate XFB width and height.

What we call "fbWidth" here is really the stride, but I'll fix that in a
followup.
VideoCommon: recreate XFB texture when the XFB size changes.

We need to do this to correctly deal with games which dynamically change the
XFB width and height.
VideoInterface: clean up naming and bitfields.

Matching the hardware more closely will hopefully make this code easier to
read.