Mesa (glsl2): ir_to_mesa: Initialize the (we never use it) abs field of Mesa src regs.

Eric Anholt anholt at kemper.freedesktop.org
Wed Jun 30 15:51:40 PDT 2010


Module: Mesa
Branch: glsl2
Commit: 285ff93819724b9a858984dc8c30858784a5ee5b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=285ff93819724b9a858984dc8c30858784a5ee5b

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jun 30 15:49:04 2010 -0700

ir_to_mesa: Initialize the (we never use it) abs field of Mesa src regs.

---

 src/mesa/shader/ir_to_mesa.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 8bfa468..ed1373b 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -1401,6 +1401,7 @@ mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
    mesa_reg.Swizzle = reg.swizzle;
    mesa_reg.RelAddr = reg.reladdr;
    mesa_reg.Negate = reg.negate;
+   mesa_reg.Abs = 0;
 
    return mesa_reg;
 }



More information about the mesa-commit mailing list