Henri Verbeet : wined3d: Upload directly from the source surface in wined3d_surface_blt(), if possible.

Alexandre Julliard julliard at winehq.org
Tue Oct 25 13:50:28 CDT 2011


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Oct 24 20:45:42 2011 +0200

wined3d: Upload directly from the source surface in wined3d_surface_blt(), if possible.

This avoids either loading sysmem surfaces into video memory (wasting GPU
memory) and then doing a blit on the GPU, or downloading GPU surfaces to
sysmem, doing a blit on the CPU, and likely uploading it again. This mostly
matters for ddraw and d3d8 applications, d3d9 already has to go through
wined3d_device_update_surface() to transfer data from sysmem surfaces to GPU
surfaces.

---

 dlls/wined3d/device.c          |  116 +---------------------------------
 dlls/wined3d/surface.c         |  136 +++++++++++++++++++++++++++++++++++++++-
 dlls/wined3d/wined3d_private.h |   12 +++-
 3 files changed, 145 insertions(+), 119 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=2da4f87a7e7551f17cd650ef6d8596f595efc13b



More information about the wine-cvs mailing list