From: Eric Anholt Date: Sat, 25 Sep 2010 01:00:42 +0000 (-0700) Subject: intel: Add fallback debug to glGenerateMipmap. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e3d22b0746dad2cc64873f336367ca4949d0123;p=mesa.git intel: Add fallback debug to glGenerateMipmap. --- diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index 4537f589111..49b7d5ef6b1 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.c +++ b/src/mesa/drivers/dri/intel/intel_tex.c @@ -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);