d3d8/tests: Add helpers to avoid multiple readbacks of the render target surface.