summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-07-17 14:38:57 -0700
committerJason Ekstrand <[email protected]>2014-07-17 18:20:09 -0700
commit765f4b8c046dc01f7141097e9335360f2ad6a24f (patch)
tree6f64e2efaca316a7102d1729ad85fe1fa50fa880 /src
parentd808de31bd3bac26cdea4d1d9464ad7f010d77d1 (diff)
i965: Improve debug output in intelTexImage and intelTexSubimage
Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_image.c4
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_subimage.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index de0546ad5f8..029d59b7bac 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_image.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
@@ -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,
diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index 03e69aecafa..04cbc4c5aee 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@ -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,