summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-14 14:11:17 -0700
committerEric Anholt <[email protected]>2011-10-28 11:31:11 -0700
commitbd51e8e4f473dd4fb4f99ed7898d771c64caca2d (patch)
tree9cf1699028d22be26bbe972f67afce5708e4ca9f /src/mesa/drivers/dri/intel
parenteb135fe8c16388cd33b424ee3915ae52d20cb3ff (diff)
dri: Remove driver GenerateMipmap hooks.
Mesa sets up _mesa_meta_GenerateMipmap as the default hook, which does this check for fallback and call the fallback itself.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c
index 7af51388091..05b0748bc3c 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -224,32 +224,9 @@ intel_unmap_texture_image(struct gl_context *ctx,
}
}
-/**
- * Called via ctx->Driver.GenerateMipmap()
- * This is basically a wrapper for _mesa_meta_GenerateMipmap() which checks
- * if we'll be using software mipmap generation. In that case, we need to
- * map/unmap the base level texture image.
- */
-static void
-intelGenerateMipmap(struct gl_context *ctx, GLenum target,
- struct gl_texture_object *texObj)
-{
- if (_mesa_meta_check_generate_mipmap_fallback(ctx, target, texObj)) {
- fallback_debug("%s - fallback to swrast\n", __FUNCTION__);
-
- _mesa_generate_mipmap(ctx, target, texObj);
- }
- else {
- _mesa_meta_GenerateMipmap(ctx, target, texObj);
- }
-}
-
-
void
intelInitTextureFuncs(struct dd_function_table *functions)
{
- functions->GenerateMipmap = intelGenerateMipmap;
-
functions->NewTextureObject = intelNewTextureObject;
functions->NewTextureImage = intelNewTextureImage;
functions->DeleteTextureImage = intelDeleteTextureImage;