summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915/intel_pixel_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_pixel_copy.c')
-rw-r--r--src/mesa/drivers/dri/i915/intel_pixel_copy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_pixel_copy.c b/src/mesa/drivers/dri/i915/intel_pixel_copy.c
index 75cf4bdfe6d..d68b8608d84 100644
--- a/src/mesa/drivers/dri/i915/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/i915/intel_pixel_copy.c
@@ -116,7 +116,8 @@ static GLboolean do_texture_copypixels( GLcontext *ctx,
if (intel_intersect_cliprects(&tmp, &src, &dst)) {
- _mesa_printf("%s: regions overlap\n", __FUNCTION__);
+ if (INTEL_DEBUG & DEBUG_PIXEL)
+ _mesa_printf("%s: regions overlap\n", __FUNCTION__);
return GL_FALSE;
}
}
@@ -339,7 +340,9 @@ void intelCopyPixels( GLcontext *ctx,
if (do_texture_copypixels( ctx, srcx, srcy, width, height, destx, desty, type))
return;
- _mesa_printf("fallback to _swrast_CopyPixels\n");
+ if (INTEL_DEBUG & DEBUG_PIXEL)
+ _mesa_printf("fallback to _swrast_CopyPixels\n");
+
_swrast_CopyPixels( ctx, srcx, srcy, width, height, destx, desty, type);
}