diff options
| author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:02:58 -0700 | 
|---|---|---|
| committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:26:35 -0700 | 
| commit | 5de2678b4e552c032cf2da6ec1549020fd9c7afd (patch) | |
| tree | 6a97109f9c0bb6f85e7bb47a6f578254bfaae4e9 | |
| parent | 4eaa6710526469b56875ff9c1ec07e673169386e (diff) | |
i915g: Add some debug prints in texture code
| -rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 16 | 
1 files changed, 10 insertions, 6 deletions
| diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index 17fcdee379..825288160c 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -42,6 +42,7 @@  #include "i915_resource.h"  #include "i915_screen.h"  #include "i915_winsys.h" +#include "i915_debug.h"  #define DEBUG_TEXTURES 0 @@ -800,12 +801,10 @@ i915_texture_create(struct pipe_screen *screen,     ws->buffer_unmap(ws, tex->buffer);  #endif -#if DEBUG_TEXTURES -   debug_printf("%s: %p size %u, stride %u, blocks (%u, %u)\n", __func__, -                tex, (unsigned int)tex_size, tex->stride, -                tex->stride / util_format_get_blocksize(tex->b.b.format), -                tex->total_nblocksy); -#endif +   I915_DBG(DBG_TEXTURE, "%s: %p size %u, stride %u, blocks (%u, %u)\n", __func__, +            tex, (unsigned int)tex_size, tex->stride, +            tex->stride / util_format_get_blocksize(tex->b.b.format), +            tex->total_nblocksy);     return &tex->b.b; @@ -852,6 +851,11 @@ i915_texture_from_handle(struct pipe_screen * screen,     tex->buffer = buffer; +   I915_DBG(DBG_TEXTURE, "%s: %p stride %u, blocks (%ux%u)\n", __func__, +            tex, tex->stride, +            tex->stride / util_format_get_blocksize(tex->b.b.format), +            tex->total_nblocksy); +     return &tex->b.b;  } | 
