Track framebuffer memory dirty more carefully.

Fixes #6296, Grand Knights History slowdown during battle transition.  May
also more correctly identify block transfer downloads.
Merge pull request #6299 from unknownbrackets/gpu-blocktransfer

Track framebuffer memory dirty more carefully