i965: Print more debuginfo in intel_texsubimage_memcpy()
authorChad Versace <chad.versace@linux.intel.com>
Tue, 15 Oct 2013 22:16:19 +0000 (15:16 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 24 Oct 2013 16:25:45 +0000 (09:25 -0700)
Print info about packing, format, type, and tiling. This will help debug
future issues with this fastpath.

Reviewed-by: Frank Henigman <fjhenigman@google.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_tex_subimage.c

index 157108f0c7da6b854ddfeaf705aff74c0b81b5b8..0384bcca696211e9928d757d9c03e0c21411f3d7 100644 (file)
@@ -621,8 +621,14 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
    /* We postponed printing this message until having committed to executing
     * the function.
     */
-   DBG("%s: level=%d offset=(%d,%d) (w,h)=(%d,%d)\n",
-       __FUNCTION__, texImage->Level, xoffset, yoffset, width, height);
+   DBG("%s: level=%d offset=(%d,%d) (w,h)=(%d,%d) format=0x%x type=0x%x "
+       "gl_format=0x%x tiling=%d "
+       "packing=(alignment=%d row_length=%d skip_pixels=%d skip_rows=%d) "
+       "for_glTexImage=%d\n",
+       __FUNCTION__, texImage->Level, xoffset, yoffset, width, height,
+       format, type, texImage->TexFormat, image->mt->region->tiling,
+       packing->Alignment, packing->RowLength, packing->SkipPixels,
+       packing->SkipRows, for_glTexImage);
 
    linear_to_tiled(
       xoffset * cpp, (xoffset + width) * cpp,