From: Marek Olšák Date: Sun, 5 Dec 2010 05:43:18 +0000 (+0100) Subject: st/mesa: initialize key in st_vp_varient X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0c929cdac75a9a0077d74c87b525b65f0a3b6c8;p=mesa.git st/mesa: initialize key in st_vp_varient This fixes endless vertex shader recompilations in find_translated_vp if the shader contains an edge flag output. NOTE: This is a candidate for the 7.9 branch. Signed-off-by Brian Paul --- diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 76799287fe1..aae2913c202 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -216,6 +216,8 @@ st_translate_vertex_program(struct st_context *st, return NULL; } + vpv->key = *key; + vpv->num_inputs = stvp->num_inputs; num_outputs = stvp->num_outputs; if (key->passthrough_edgeflags) {