d3d9: Add some visual tests for Direct3DDevice9_StretchRect()

Stefan Dösinger stefan at codeweavers.com
Tue Apr 1 04:45:19 CDT 2008

Am Dienstag, 1. April 2008 07:20:44 schrieb Jason Green:
Did you take a look at the various capability flags? I think the test as you 
submitted it is correct for dx9 level cards and drivers, but there are a few 
capability flags like D3DDEVCAPS2_CANSTRETCHRECTFROMTEXTURE or similar. Also 
some drivers seem to refuse StretchRecting between offscreenplain surfaces, 
even if no stretching is used.

Do you have any ideas what the scheme behind the allowed/forbidden blits is? 
So far I can see this:

-> Blitting to a rendertarget surface/texture is always OK
-> blitting between offscreen surfaces is ok as long as no stretching occurs
-> blitting to non-RT surfaces/textures faily, except the above

Did you test blitting from/to sysmem surfaces? The msdn says both must be 
D3DPOOL_DEFAULT as far as I remember

More information about the wine-devel mailing list