radeon: add some debugging info to sw tiling/untiling functions
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 6 Feb 2010 17:38:01 +0000 (18:38 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Sun, 7 Mar 2010 11:21:29 +0000 (12:21 +0100)
src/mesa/drivers/dri/radeon/radeon_tile.c

index 1e4729a0b5dcc4a8cf455f28f39964664410390c..935fa45e04170c705ce3d8fbb2e4b0c3a1a2258b 100644 (file)
@@ -30,7 +30,8 @@
 #include <stdint.h>
 #include <string.h>
 
-#include <main/macros.h>
+#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: