mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-14 15:20:36 +02:00
intel: Add fallback debug to glGenerateMipmap.
This commit is contained in:
parent
934fde4f5a
commit
2e3d22b074
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue