summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_common_context.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-02-13 00:05:39 +1000
committerDave Airlie <airlied@redhat.com>2009-02-13 00:05:39 +1000
commitd513915d27eac8a57ff7f5c1973b4a07fe288c53 (patch)
treeff299ed938494c28c6030c0ee9288725c81e031f /src/mesa/drivers/dri/radeon/radeon_common_context.c
parent9314d936e84cc8449d6e200b5d1df51d6d057876 (diff)
radeon/r200/r300: make build again with tracker changes
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_common_context.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index 8acde2b90c..1b8a05d045 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -37,6 +37,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "utils.h"
#include "drirenderbuffer.h"
#include "vblank.h"
+#include "main/state.h"
#define DRIVER_DATE "20090101"
@@ -175,7 +176,9 @@ GLboolean radeonInitContext(radeonContextPtr radeon,
*/
void radeonCleanupContext(radeonContextPtr radeon)
{
+#ifdef RADEON_BO_TRACK
FILE *track;
+#endif
struct radeon_renderbuffer *rb;
GLframebuffer *fb;
@@ -232,11 +235,13 @@ void radeonCleanupContext(radeonContextPtr radeon)
FREE(radeon->state.scissor.pClipRects);
radeon->state.scissor.pClipRects = 0;
}
+#ifdef RADEON_BO_TRACK
track = fopen("/tmp/tracklog", "w");
if (track) {
radeon_tracker_print(&radeon->radeonScreen->bom->tracker, track);
fclose(track);
}
+#endif
}
/* Force the context `c' to be unbound from its buffer.