[PATCH 1/5] wined3d: Use the map binding to optimize sysmem->sysmem blits.
Stefan Dösinger
stefan at codeweavers.com
Mon Jan 13 08:21:00 CST 2014
---
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");
--
1.8.3.2
More information about the wine-patches
mailing list