summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple/brw_state_cache.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-06 14:37:49 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-06 14:37:49 +0900
commit9791d7f64c5a58b9c1bf32d00c71e0e031f54f70 (patch)
tree8b942442af70cfe2a786aee35f250b46b9bb13f9 /src/mesa/pipe/i965simple/brw_state_cache.c
parent78bce9c2dcd45d1d8706bb9bab3b3a73943de990 (diff)
gallium: Use p_debug.h instead of non-portable stdio.h/assert.h functions.
Diffstat (limited to 'src/mesa/pipe/i965simple/brw_state_cache.c')
-rw-r--r--src/mesa/pipe/i965simple/brw_state_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/i965simple/brw_state_cache.c b/src/mesa/pipe/i965simple/brw_state_cache.c
index c5738733f4..b3a5124461 100644
--- a/src/mesa/pipe/i965simple/brw_state_cache.c
+++ b/src/mesa/pipe/i965simple/brw_state_cache.c
@@ -149,7 +149,7 @@ unsigned brw_upload_cache( struct brw_cache *cache,
if (!brw_pool_alloc(cache->pool, data_size, 1 << 6, &offset)) {
/* Should not be possible:
*/
- printf("brw_pool_alloc failed\n");
+ debug_printf("brw_pool_alloc failed\n");
exit(1);
}
@@ -177,7 +177,7 @@ unsigned brw_upload_cache( struct brw_cache *cache,
}
if (BRW_DEBUG & DEBUG_STATE)
- printf("upload %s: %d bytes to pool buffer %p offset %x\n",
+ debug_printf("upload %s: %d bytes to pool buffer %p offset %x\n",
cache->name,
data_size,
(void*)cache->pool->buffer,
@@ -416,7 +416,7 @@ void brw_clear_all_caches( struct brw_context *brw )
int i;
if (BRW_DEBUG & DEBUG_STATE)
- fprintf(stderr, "%s\n", __FUNCTION__);
+ debug_printf("%s\n", __FUNCTION__);
for (i = 0; i < BRW_MAX_CACHE; i++)
clear_cache(&brw->cache[i]);