[Mesa-dev] [PATCH] meta: Add on demand compilation of per target shader programs
Brian Paul
brianp at vmware.com
Fri Sep 21 08:58:18 PDT 2012
On 09/20/2012 04:19 PM, Anuj Phogat wrote:
> 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 at gmail.com>
> ---
> src/mesa/drivers/common/meta.c | 141 ++++++++++++++++++++++++----------------
> 1 files changed, 84 insertions(+), 57 deletions(-)
Looks OK to me.
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list