=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use the map binding to optimize sysmem->sysmem blits.

Alexandre Julliard julliard at winehq.org
Mon Jan 13 12:46:33 CST 2014


Module: wine
Branch: master
Commit: 28bfc2058903793d87097941cc12f00f14e0c3ee
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=28bfc2058903793d87097941cc12f00f14e0c3ee

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Mon Jan 13 15:21:00 2014 +0100

wined3d: Use the map binding to optimize sysmem->sysmem blits.

---

 dlls/wined3d/surface.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 54891ac..7023bd7 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -6216,8 +6216,8 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
     {
         /* In principle this would apply to depth blits as well, but we don't
          * implement those in the CPU blitter at the moment. */
-        if ((dst_surface->flags & SFLAG_INSYSMEM)
-                && (!src_surface || (src_surface->flags & SFLAG_INSYSMEM)))
+        if ((dst_surface->flags & dst_surface->map_binding)
+                && (!src_surface || (src_surface->flags & src_surface->map_binding)))
         {
             if (scale)
                 TRACE("Not doing sysmem blit because of scaling.\n");




More information about the wine-cvs mailing list