intel: Add fallback debug to glGenerateMipmap.
authorEric Anholt <eric@anholt.net>
Sat, 25 Sep 2010 01:00:42 +0000 (18:00 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 25 Sep 2010 01:03:28 +0000 (18:03 -0700)
src/mesa/drivers/dri/intel/intel_tex.c

index 4537f589111afc9d283d8ed3eaa9f52c34c5c1bb..49b7d5ef6b1710d8c355151e80f330deb0349800 100644 (file)
@@ -157,6 +157,10 @@ intelGenerateMipmap(GLcontext *ctx, GLenum target,
       /* sw path: need to map texture images */
       struct intel_context *intel = intel_context(ctx);
       struct intel_texture_object *intelObj = intel_texture_object(texObj);
+
+      if (INTEL_DEBUG & DEBUG_FALLBACKS)
+        fprintf(stderr, "%s - fallback to swrast\n", __FUNCTION__);
+
       intel_tex_map_level_images(intel, intelObj, texObj->BaseLevel);
       _mesa_generate_mipmap(ctx, target, texObj);
       intel_tex_unmap_level_images(intel, intelObj, texObj->BaseLevel);