summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-05 06:43:18 +0100
committerMarek Olšák <[email protected]>2010-12-05 17:38:19 +0100
commitc0c929cdac75a9a0077d74c87b525b65f0a3b6c8 (patch)
tree55ed0b3c7af38e122ff7e8f91e01de376ecc8fb0
parentccacabe86c30623b00997f8ec0b4cd01866ee46a (diff)
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 <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 2 insertions, 0 deletions
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) {