[Mesa-dev] [PATCH 1/2] i965: Improve debug output in intelTexImage and intelTexSubimage
Jason Ekstrand
jason at jlekstrand.net
Thu Jul 17 14:41:30 PDT 2014
Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
src/mesa/drivers/dri/i965/intel_tex_image.c | 4 +++-
src/mesa/drivers/dri/i965/intel_tex_subimage.c | 6 ++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index de0546a..029d59b 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 03e69ae..04cbc4c 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,
--
2.0.1
More information about the mesa-dev
mailing list