summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-09-29 14:01:42 -0700
committerEric Anholt <[email protected]>2011-10-03 13:29:38 -0700
commitcb86560ddb0a09727f55010bc184354d506f6484 (patch)
treedd984854f570a238f2e33081dac4179b994cf027 /src/mesa/drivers
parentfd99cd0e10849205749aad580fea8c970fb46a31 (diff)
intel: Add debug output to intel_map_texture_image.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c
index 2b4047f054c..4ab618ad736 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -170,6 +170,10 @@ intel_map_texture_image(struct gl_context *ctx,
*stride = mt->region->pitch * mt->cpp;
*map = base + y * *stride + x * mt->cpp;
+
+ DBG("%s: %d,%d %dx%d from mt %p %d,%d = %p/%d\n", __FUNCTION__,
+ x - image_x, y - image_y, w, h,
+ mt, x, y, *map, *stride);
} else {
/* texture data is in malloc'd memory */
GLuint width = tex_image->Width;
@@ -181,7 +185,9 @@ intel_map_texture_image(struct gl_context *ctx,
*stride = _mesa_format_row_stride(tex_image->TexFormat, width);
*map = tex_image->Data + (slice * height + y) * *stride + x * texelSize;
- return;
+ DBG("%s: %d,%d %dx%d from data %p = %p/%d\n", __FUNCTION__,
+ x, y, w, h,
+ tex_image->Data, *map, *stride);
}
}