Mesa (master): i965/vs: Return a dummy value when visiting ir_texture.

Eric Anholt anholt at kemper.freedesktop.org
Wed Sep 21 17:17:43 UTC 2011


Module: Mesa
Branch: master
Commit: d4444b8e5b914cde428e549c0db9418ddc1402f6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4444b8e5b914cde428e549c0db9418ddc1402f6

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Sep  8 16:09:31 2011 -0700

i965/vs: Return a dummy value when visiting ir_texture.

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




More information about the mesa-commit mailing list