diff options
author | Eric Anholt <[email protected]> | 2010-09-24 18:00:42 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-09-24 18:03:28 -0700 |
commit | 2e3d22b0746dad2cc64873f336367ca4949d0123 (patch) | |
tree | 572434682010769e1c00a9453943c75b1a0f5de5 /src/mesa | |
parent | 934fde4f5a63ff7c3c29c21e9e67cce3c2564788 (diff) |
intel: Add fallback debug to glGenerateMipmap.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |