trace: Only close trace files on exit.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Apr 2013 13:18:33 +0000 (14:18 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Apr 2013 13:18:33 +0000 (14:18 +0100)
commit28e6a272fc0d16b2c3c8972f8936126ebf0aa764
treee2eaee87a000ed31e11518718fcfb5d7c4a8a59a
parent74d1153c9c3f5f88ad3fa1819d54f5b574b2e37f
trace: Only close trace files on exit.

Many applications don't exit cleanly, others may create and destroy a
screen multiple times, so we only write </trace> tag and close at exit
time.
src/gallium/drivers/trace/tr_dump.c
src/gallium/drivers/trace/tr_dump.h
src/gallium/drivers/trace/tr_screen.c