aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-22 03:14:24 +0100
committerJosé Fonseca <[email protected]>2008-08-22 03:14:24 +0100
commit807a7487ff6f0af60240ce467bd1ac160b0b054e (patch)
tree5dde363d38497d4a7ab53f41712f39cd9398cd0b /src/gallium/drivers/trace
parent152d00d199f2c8c46a96be450cfd017b4798b4d1 (diff)
trace: Don't trace texture/surfaces releases, only destructions.
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r--src/gallium/drivers/trace/tr_screen.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index cca8597a87e..a6467ec35fd 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -224,19 +224,20 @@ trace_screen_texture_release(struct pipe_screen *_screen,
else
texture = NULL;
- trace_dump_call_begin("pipe_screen", "texture_release");
-
- trace_dump_arg(ptr, screen);
- trace_dump_arg(ptr, texture);
-
if (*ptexture) {
- if (!--(*ptexture)->refcount)
+ if (!--(*ptexture)->refcount) {
+ trace_dump_call_begin("pipe_screen", "texture_destroy");
+
+ trace_dump_arg(ptr, screen);
+ trace_dump_arg(ptr, texture);
+
trace_texture_destroy(tr_scr, *ptexture);
+
+ trace_dump_call_end();
+ }
*ptexture = NULL;
}
-
- trace_dump_call_end();
}
@@ -297,19 +298,20 @@ trace_screen_tex_surface_release(struct pipe_screen *_screen,
else
surface = NULL;
- trace_dump_call_begin("pipe_screen", "tex_surface_release");
-
- trace_dump_arg(ptr, screen);
- trace_dump_arg(ptr, surface);
-
if (*psurface) {
- if (!--(*psurface)->refcount)
+ if (!--(*psurface)->refcount) {
+ trace_dump_call_begin("pipe_screen", "tex_surface_destroy");
+
+ trace_dump_arg(ptr, screen);
+ trace_dump_arg(ptr, surface);
+
trace_surface_destroy(tr_tex, *psurface);
+
+ trace_dump_call_end();
+ }
*psurface = NULL;
}
-
- trace_dump_call_end();
}