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