Scale bits better in MakePixelTexture().
Implement a very basic stencil upload.

This is not fast or efficient, but works.
Fix exit replacement hooks.
Fix Star Ocean movement problems due to memcpy.

It needs to handle overlap correctly, ugh.
Hook Star Ocean's function to upload stencil data.

Hurray, it seems to work properly.
Add support for 4444/5551/8888 stencil upload.
Disable the last shader properly.
Upload stencil by bit rather than by value.

Still not the most optimal way, probably, but this was an easy change.
Get rid of depalFBOs when overwriting textures.

Just in case they are not always used as framebuffers.  We set to 0 later
anyway.
Track temporary-use FBOs all in FramebufferManager.

This way it's easier to manage their lifecycle.
Decimate temporary FBOs after not being used.
Doesn't look like these need to use depth/stencil.

May save a bit of VRAM/RAM.
Also check for x offsets within block transfers.

Grand Knights History does these too, not just y offsets.  Why does it
bother when block transfer let's you specify the coordinates so exactly?
Merge pull request #6206 from unknownbrackets/framebuffer-clut

Track and decimate temporary-use FBOs in one place
Merge pull request #6209 from unknownbrackets/gpu-blocktransfer

Also check for x offsets within block transfers
Merge pull request #6205 from unknownbrackets/replace-funcs

Initial replacement for Star Ocean's stencil upload