i965/vs: Return a dummy value when visiting ir_texture.
authorEric Anholt <eric@anholt.net>
Thu, 8 Sep 2011 23:09:31 +0000 (16:09 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 21 Sep 2011 16:46:39 +0000 (09:46 -0700)
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

index 833349a12642e4fb4ca2c717dbbd6f248ba1a139..61c226a839513bb9e85d05ae6d6e233c5b350b57 100644 (file)
@@ -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