summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_dump.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-16 18:45:00 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-18 20:47:40 +0100
commit6a31bb6ad8251ae977327e64562f373a89f55c70 (patch)
tree4550888e9d08df759059a974dae3c0c5ca3afc31 /src/gallium/drivers/trace/tr_dump.c
parent145a45e9d6807add8229f1fc9c63fbb6951b1b88 (diff)
trace: Get the trace file from the GALLIUM_TRACE option itself.
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index c711a56b94..ecd0d6830d 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -218,12 +218,15 @@ trace_dump_trace_close(void)
boolean trace_dump_trace_begin()
{
- if(!debug_get_bool_option("GALLIUM_TRACE", FALSE))
+ const char *filename;
+
+ filename = debug_get_option("GALLIUM_TRACE", NULL);
+ if(!filename)
return FALSE;
if(!stream) {
- stream = trace_stream_create("gallium", "trace");
+ stream = trace_stream_create(filename);
if(!stream)
return FALSE;