Henri Verbeet : wined3d: Make RTL_READTEX the default rendertarget locking method.

Alexandre Julliard julliard at winehq.org
Fri Aug 14 08:59:35 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Aug 14 09:23:25 2009 +0200

wined3d: Make RTL_READTEX the default rendertarget locking method.

For most cards this should make more sense than RTL_READDRAW, even if e.g.
surface_upload_data() has some room for improvement.

---

 dlls/wined3d/surface.c         |    1 -
 dlls/wined3d/wined3d_main.c    |    2 +-
 dlls/wined3d/wined3d_private.h |    1 -
 3 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 29ad00d..781a6b2 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1518,7 +1518,6 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
                 IWineD3DSurface_LoadLocation(iface, SFLAG_INTEXTURE, NULL /* partial texture loading not supported yet */);
                 /* drop through */
 
-            case RTL_AUTO:
             case RTL_READDRAW:
                 IWineD3DSurface_LoadLocation(iface, SFLAG_INDRAWABLE, fullsurface ? NULL : &This->dirtyRect);
                 break;
diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c
index 881f90e..4feb509 100644
--- a/dlls/wined3d/wined3d_main.c
+++ b/dlls/wined3d/wined3d_main.c
@@ -41,7 +41,7 @@ wined3d_settings_t wined3d_settings =
     PS_HW,          /* Hardware by default */
     TRUE,           /* Use of GLSL enabled by default */
     ORM_FBO,        /* Use FBOs to do offscreen rendering */
-    RTL_AUTO,       /* Automatically determine best locking method */
+    RTL_READTEX,    /* Default render target locking method */
     PCI_VENDOR_NONE,/* PCI Vendor ID */
     PCI_DEVICE_NONE,/* PCI Device ID */
     0,              /* The default of memory is set in FillGLCaps */
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 8df99f6..5f88afd 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -267,7 +267,6 @@ static inline float float_24_to_32(DWORD in)
 #define SHADER_NONE 4
 
 #define RTL_DISABLE   -1
-#define RTL_AUTO       0
 #define RTL_READDRAW   1
 #define RTL_READTEX    2
 




More information about the wine-cvs mailing list