[Mesa-dev] [PATCH] st/mesa: initialize key in st_vp_varient
Marek Olšák
maraeo at gmail.com
Sat Dec 4 21:50:58 PST 2010
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.
---
src/mesa/state_tracker/st_program.c | 2 ++
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 7679928..aae2913 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) {
--
1.7.0.4
More information about the mesa-dev
mailing list