aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell/spu/spu_command.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-16 20:25:28 -0600
committerBrian Paul <[email protected]>2008-10-17 14:14:23 -0600
commit9fa8671c73fa44a95e2ea7fed6047bddb042796f (patch)
treec5b1bf1bfe68d06fc21966ec5be2dbdc0d35bed0 /src/gallium/drivers/cell/spu/spu_command.c
parentcb8ebc912430201683463822897f06d7d42795f2 (diff)
cell: add new debug flag (cache) to report texture cache stats on exit
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_command.c')
-rw-r--r--src/gallium/drivers/cell/spu/spu_command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_command.c b/src/gallium/drivers/cell/spu/spu_command.c
index ff4a52d79a4..9c853c0961a 100644
--- a/src/gallium/drivers/cell/spu/spu_command.c
+++ b/src/gallium/drivers/cell/spu/spu_command.c
@@ -720,5 +720,6 @@ command_loop(void)
D_PRINTF(CELL_DEBUG_CMD, "Exit command loop\n");
- spu_dcache_report();
+ if (spu.init.debug_flags & CELL_DEBUG_CACHE)
+ spu_dcache_report();
}