From: Maciej Cencora Date: Sat, 6 Feb 2010 17:38:01 +0000 (+0100) Subject: radeon: add some debugging info to sw tiling/untiling functions X-Git-Tag: 062012170305~14085^2~44^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8014b5f06853a5926ee772af232abdc9cd4e90c4;p=profile%2Fivi%2Fmesa.git radeon: add some debugging info to sw tiling/untiling functions --- diff --git a/src/mesa/drivers/dri/radeon/radeon_tile.c b/src/mesa/drivers/dri/radeon/radeon_tile.c index 1e4729a..935fa45 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tile.c +++ b/src/mesa/drivers/dri/radeon/radeon_tile.c @@ -30,7 +30,8 @@ #include #include -#include
+#include "main/macros.h" +#include "radeon_debug.h" #define MICRO_TILE_SIZE 32 @@ -215,6 +216,10 @@ void tile_image(const void * src, unsigned src_pitch, assert(dst_pitch >= width); assert(dst_pitch * _mesa_get_format_bytes(format) % MICRO_TILE_SIZE == 0); + radeon_print(RADEON_TEXTURE, RADEON_TRACE, + "Software tiling: src_pitch %d, dst_pitch %d, width %d, height %d, bpp %d\n", + src_pitch, dst_pitch, width, height, _mesa_get_format_bytes(format)); + switch (_mesa_get_format_bytes(format)) { case 16: @@ -436,6 +441,10 @@ void untile_image(const void * src, unsigned src_pitch, assert(dst_pitch >= width); assert(src_pitch * _mesa_get_format_bytes(format) % MICRO_TILE_SIZE == 0); + radeon_print(RADEON_TEXTURE, RADEON_TRACE, + "Software untiling: src_pitch %d, dst_pitch %d, width %d, height %d, bpp %d\n", + src_pitch, dst_pitch, width, height, _mesa_get_format_bytes(format)); + switch (_mesa_get_format_bytes(format)) { case 16: