i965: Improve debug output in intelTexImage and intelTexSubimage
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Jul 2014 21:38:57 +0000 (14:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 18 Jul 2014 01:20:09 +0000 (18:20 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/intel_tex_image.c
src/mesa/drivers/dri/i965/intel_tex_subimage.c

index de0546ad5f85012154aef1c448b342aa299be24c..029d59b7bac0b419a882cb9180a77a6eca0b1d49 100644 (file)
@@ -173,8 +173,10 @@ intelTexImage(struct gl_context * ctx,
 {
    bool ok;
 
-   DBG("%s target %s level %d %dx%dx%d\n", __FUNCTION__,
+   DBG("%s mesa_format %s target %s format %s type %s level %d %dx%dx%d\n",
+       __FUNCTION__, _mesa_get_format_name(texImage->TexFormat),
        _mesa_lookup_enum_by_nr(texImage->TexObject->Target),
+       _mesa_lookup_enum_by_nr(format), _mesa_lookup_enum_by_nr(type),
        texImage->Level, texImage->Width, texImage->Height, texImage->Depth);
 
    ok = intel_texsubimage_tiled_memcpy(ctx, dims, texImage,
index 03e69aecafabb7818f7a8779cb404a80adec1aae..04cbc4c5aee35ed77afd334e77e4d691f1dba9a0 100644 (file)
@@ -667,6 +667,12 @@ intelTexSubImage(struct gl_context * ctx,
 {
    bool ok;
 
+   DBG("%s mesa_format %s target %s format %s type %s level %d %dx%dx%d\n",
+       __FUNCTION__, _mesa_get_format_name(texImage->TexFormat),
+       _mesa_lookup_enum_by_nr(texImage->TexObject->Target),
+       _mesa_lookup_enum_by_nr(format), _mesa_lookup_enum_by_nr(type),
+       texImage->Level, texImage->Width, texImage->Height, texImage->Depth);
+
    ok = intel_texsubimage_tiled_memcpy(ctx, dims, texImage,
                                        xoffset, yoffset, zoffset,
                                        width, height, depth,