[WINESYNC] d3dx9: Ignore filter in D3DXLoadSurfaceFromSurface() when rects match.
authorwinesync <ros-dev@reactos.org>
Mon, 21 Sep 2020 21:07:40 +0000 (23:07 +0200)
committerJérôme Gardou <jerome.gardou@reactos.org>
Thu, 4 Feb 2021 15:37:07 +0000 (16:37 +0100)
commita5f345390cca9992f523cfe66eac6979f9f09b64
treede2dec24ac1a984b6af78ec44c49b632313d057e
parent4d0164c0a09d2ff8abf7d7e9060cf14b572a6717
[WINESYNC] d3dx9: Ignore filter in D3DXLoadSurfaceFromSurface() when rects match.

This allows us to use IDirect3DDevice9_StretchRect
and avoid GPU synchronization.
It massively improves performance in Dead Space 1 which
calls LoadSurfaceFromSurface every frame before presenting.

Signed-off-by: Robin Kertels <robin.kertels@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
wine commit id 625622ad4182061ee3111032ab0ae4a494b74e73 by Robin Kertels <robin.kertels@gmail.com>
dll/directx/wine/d3dx9_36/surface.c
sdk/tools/winesync/d3dx9.cfg