meta: Add on demand compilation of per target shader programs
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 20 Sep 2012 20:17:19 +0000 (13:17 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 21 Sep 2012 20:31:58 +0000 (13:31 -0700)
commiteb1d87fb945783448cc40ad43c9cd4d98002d424
treee12a6a1d37b10c68c3afcfd2ae71a8869feb92b0
parent8ed9aaea5112bcda9ec7120e1c3b6f0447cc6cd2
meta: Add on demand compilation of per target shader programs

A call to glGenerateMipmap() follows the generation of a relevant
shader program in setup_glsl_generate_mipmap().

To support all texture targets and to avoid compiling shaders
everytime, per target shader programs are compiled on demand
and saved for the next call.

Fixes float-texture(mipmap.manual):
See Comment 6: https://bugs.freedesktop.org/show_bug.cgi?id=54296

NOTE: This is a candidate for stable branches.

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