d3d: Update the texture cache to mostly match.

Now we can reduce the differences down.
d3d: Add vertex full alpha detection.
d3d: Fix texture scaling.
d3d: Improve GE debugger with render-to-tex.

Also fix a crash in oddly sized framebuffers.
Merge pull request #6864 from unknownbrackets/d3d9

Update Direct3D 9 texture cache
d3d: Begin centralizing framebuffer management.
Merge pull request #6866 from unknownbrackets/d3d9

d3d: Begin centralizing framebuffer management
Revert "Set NSPrincipalClass to get retina widget rendering on OS X"
Merge pull request #6867 from hrydgard/revert-6835-principal_class

Revert "Set NSPrincipalClass to get retina widget rendering on OS X"
Qt buildfix.
D3D9: Add support for D3D9Ex, which has faster flipping and an option for lower latency, and some other stuff.

MANAGED textures are not allowed though so compensate for that by making them dynamic for now.
D3D: Remove now-redundant texture coord scaling now that we decode the 8-bit and 16-bit formats in the vertex decoder
d3d: Migrate a few more things into common code.
d3d: Centralize framebuf creation/switch logic.
Move FBO_OLD_AGE to the common header.

Guess it's fine here.
d3d: Don't statically import Direct3DCreate9Ex().
d3d: Fix drawpixels texture.
Disable D3D9Ex until we can tune for it.
Merge pull request #6869 from unknownbrackets/d3d9

d3d: Centralize more framebuffer management
DX9: Disable an annoying warning in vertex shader generator to clean up our reports

warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them