[PATCH 6/6] wined3d: Rename buffer_invalidate_bo_range() to buffer_mark_dirty_area().

Józef Kucia jkucia at codeweavers.com
Sun Oct 16 14:46:49 CDT 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/buffer.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index c7f0d81..a0a4194 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -41,7 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
 #define VB_MAXFULLCONVERSIONS 5       /* Number of full conversions before we stop converting */
 #define VB_RESETFULLCONVS     20      /* Reset full conversion counts after that number of draws */
 
-static void buffer_invalidate_bo_range(struct wined3d_buffer *buffer, unsigned int offset, unsigned int size)
+static void buffer_mark_dirty_area(struct wined3d_buffer *buffer, unsigned int offset, unsigned int size)
 {
     if (!offset && (!size || size == buffer->resource.size))
         goto invalidate_all;
@@ -118,7 +118,7 @@ static void wined3d_buffer_invalidate_range(struct wined3d_buffer *buffer, DWORD
     }
 
     if (location & WINED3D_LOCATION_BUFFER)
-        buffer_invalidate_bo_range(buffer, offset, size);
+        buffer_mark_dirty_area(buffer, offset, size);
 
     buffer->locations &= ~location;
 
@@ -233,7 +233,7 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This, struct wine
 
     if (This->flags & WINED3D_BUFFER_DOUBLEBUFFER)
     {
-        buffer_invalidate_bo_range(This, 0, 0);
+        buffer_mark_dirty_area(This, 0, 0);
     }
     else
     {
@@ -871,7 +871,7 @@ void wined3d_buffer_load(struct wined3d_buffer *buffer, struct wined3d_context *
 
         /* The declaration changed, reload the whole buffer. */
         WARN("Reloading buffer because of a vertex declaration change.\n");
-        buffer_invalidate_bo_range(buffer, 0, 0);
+        buffer_mark_dirty_area(buffer, 0, 0);
 
         /* Avoid unfenced updates, we might overwrite more areas of the buffer than the application
          * cleared for unsynchronized updates
@@ -1025,7 +1025,7 @@ static HRESULT wined3d_buffer_map(struct wined3d_buffer *buffer, UINT offset, UI
         else
         {
             if (!(flags & WINED3D_MAP_READONLY))
-                buffer_invalidate_bo_range(buffer, dirty_offset, dirty_size);
+                buffer_mark_dirty_area(buffer, dirty_offset, dirty_size);
 
             if (count == 1)
             {
-- 
2.7.3




More information about the wine-patches mailing list