From d9f38e1a71f94b112b4ab288a7043dd2fc4a701d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 12 May 2010 15:39:27 +0800 Subject: [PATCH] st/mesa: Do not use draw module in OpenGL ES build. This removes references to symbols in draw module for OpenGL ES build. As OpenGL ES does not support feedback/selection mode, draw module is used in pathes that will never be reached. However, if the symbols are referenced, it will bloat the final shared libraries unnecessarily. This is serious when LLVM is enabled. --- src/mesa/state_tracker/st_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 772a2ee17c9..3c865028a7a 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -65,8 +65,10 @@ st_vp_release_varients( struct st_context *st, if (vpv->driver_shader) cso_delete_vertex_shader(st->cso_context, vpv->driver_shader); +#if FEATURE_feedback || FEATURE_rastpos if (vpv->draw_shader) draw_delete_vertex_shader( st->draw, vpv->draw_shader ); +#endif if (vpv->tgsi.tokens) st_free_tokens(vpv->tgsi.tokens); -- 2.30.2