meta: Rearrange shader creation in setup_glsl_generate_mipmap
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 5 Oct 2012 22:13:34 +0000 (15:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Oct 2012 03:35:39 +0000 (20:35 -0700)
commit3308c079bd00e9b9aa546f5214ce197a904d059b
tree737dd3905f46e8d7dad817c2d000d3b753c17953
parentab097dde0c958dd8b1c06a07ef8913512753760c
meta: Rearrange shader creation in setup_glsl_generate_mipmap

The diff looks weird, but this moves the code from the first 'if
(ctx->Const.GLSLVersion < 130)' block down into the second block.  It
also moves some variable decalarations closer to their use.

NOTE: This is a candidate for the 9.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/common/meta.c