[Mesa-dev] [PATCH 10/10] i965/vs: Return a dummy value when visiting ir_texture.
Eric Anholt
eric at anholt.net
Thu Sep 8 23:32:27 PDT 2011
While the program won't successfully link in the end, this avoids
possible assertion failure in the driver during linking if
this->result isn't initialized with something already.
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 833349a..61c226a 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1675,6 +1675,7 @@ vec4_visitor::visit(ir_texture *ir)
* programs that do vertex texturing, but after our visitor has
* run.
*/
+ this->result = src_reg(this, glsl_type::vec4_type);
}
void
--
1.7.5.4
More information about the mesa-dev
mailing list