meta: Add GLSL variant of _mesa_meta_GenerateMipmap() function
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 29 Aug 2012 18:13:55 +0000 (11:13 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 29 Aug 2012 18:43:52 +0000 (11:43 -0700)
commit0fc11a24c85413a335b87bc34659d2381fd6670c
treed6efc6be0765303a48a365401c7d03c5d19821b8
parentc824804c6f10eeb58ae91033682ca871c0e373c4
meta: Add GLSL variant of _mesa_meta_GenerateMipmap() function

This reduces the overhead of using the fixed function internally
in the driver.

V2: Use setup_glsl_generate_mipmap() and setup_ff_generate_mipmap()
    functions to avoid code duplication.
    Use glsl version when ARB_{vertex, fragmet}_shader are present.
    Remove redundant code.

V3: Remove redundant border related code leaving the assertion.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/meta.c