[PATCH] wined3d: Trace GL buffer object creation more accurately.

Zebediah Figura zfigura at codeweavers.com
Thu Mar 10 17:07:06 CST 2022


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/wined3d/device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4f356bdc7ec..d14b40d8e3e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1080,6 +1080,7 @@ static struct wined3d_allocator_block *wined3d_device_gl_allocate_memory(struct
     *id = wined3d_allocator_chunk_gl(block->chunk)->gl_buffer;
 
     wined3d_device_gl_allocator_unlock(device_gl);
+    TRACE("Allocated offset %Iu from buffer object %u.\n", block->offset, *id);
     return block;
 }
 
@@ -1144,6 +1145,7 @@ bool wined3d_device_gl_create_bo(struct wined3d_device_gl *device_gl, struct win
             checkGLcall("buffer object creation");
             return false;
         }
+        TRACE("Created buffer object %u.\n", id);
         wined3d_context_gl_bind_bo(context_gl, binding, id);
 
         if (!coherent && gl_info->supported[APPLE_FLUSH_BUFFER_RANGE])
@@ -1158,7 +1160,6 @@ bool wined3d_device_gl_create_bo(struct wined3d_device_gl *device_gl, struct win
         checkGLcall("buffer object creation");
     }
 
-    TRACE("Created buffer object %u.\n", id);
     bo->id = id;
     bo->memory = memory;
     bo->size = size;
-- 
2.35.1




More information about the wine-devel mailing list