=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Use d3d_perf channel for performance warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 18 10:51:12 CDT 2016


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed May 18 00:04:35 2016 +0200

wined3d: Use d3d_perf channel for performance warnings.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/surface.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 4fb2251..2f00e87 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1897,7 +1897,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
 
     if ((xrel - 1.0f < -eps) || (xrel - 1.0f > eps))
     {
-        FIXME("Doing a pixel by pixel copy from the framebuffer to a texture, expect major performance issues\n");
+        FIXME_(d3d_perf)("Doing a pixel by pixel copy from the framebuffer to a texture.\n");
 
         if (filter != WINED3D_TEXF_NONE && filter != WINED3D_TEXF_POINT)
             ERR("Texture filtering not supported in direct blit.\n");
@@ -2910,8 +2910,7 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
         if ((sub_resource->locations & (WINED3D_LOCATION_TEXTURE_RGB | texture->resource.map_binding))
                 == WINED3D_LOCATION_TEXTURE_RGB)
         {
-            /* Performance warning... */
-            FIXME("Downloading RGB surface %p to reload it as sRGB.\n", surface);
+            FIXME_(d3d_perf)("Downloading RGB surface %p to reload it as sRGB.\n", surface);
             surface_load_location(surface, context, texture->resource.map_binding);
         }
     }
@@ -2920,8 +2919,7 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
         if ((sub_resource->locations & (WINED3D_LOCATION_TEXTURE_SRGB | texture->resource.map_binding))
                 == WINED3D_LOCATION_TEXTURE_SRGB)
         {
-            /* Performance warning... */
-            FIXME("Downloading sRGB surface %p to reload it as RGB.\n", surface);
+            FIXME_(d3d_perf)("Downloading sRGB surface %p to reload it as RGB.\n", surface);
             surface_load_location(surface, context, texture->resource.map_binding);
         }
     }




More information about the wine-cvs mailing list