Henri Verbeet : wined3d: Add a performance warning for mapping a dynamic surface without WINED3D_MAP_DISCARD .
Alexandre Julliard
julliard at winehq.org
Thu Apr 18 13:57:25 CDT 2013
Module: wine
Branch: master
Commit: 0e32c9a247d11c432a7360a185ce0734bfd6a08f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e32c9a247d11c432a7360a185ce0734bfd6a08f
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Apr 18 09:35:11 2013 +0200
wined3d: Add a performance warning for mapping a dynamic surface without WINED3D_MAP_DISCARD.
---
dlls/wined3d/surface.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index f7e99ab..e9c0b52 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -894,6 +894,9 @@ static void surface_map(struct wined3d_surface *surface, const RECT *rect, DWORD
}
else
{
+ if (surface->resource.usage & WINED3DUSAGE_DYNAMIC)
+ WARN_(d3d_perf)("Mapping a dynamic surface without WINED3D_MAP_DISCARD.\n");
+
/* surface_load_location() does not check if the rectangle specifies
* the full surface. Most callers don't need that, so do it here. */
if (rect && !rect->top && !rect->left
More information about the wine-cvs
mailing list