Mesa (master): glsl2: add case for ir_unop_noise

Brian Paul brianp at kemper.freedesktop.org
Tue Sep 14 15:20:11 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Sep 14 09:15:19 2010 -0600

glsl2: add case for ir_unop_noise

Silences a compiler warning.  Still need to add some assertions
for this case.

---

 src/glsl/ir_validate.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 1c50957..58ab8aa 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -275,6 +275,10 @@ ir_validate::visit_leave(ir_expression *ir)
       assert(ir->operands[0]->type == ir->type);
       break;
 
+   case ir_unop_noise:
+      /* XXX what can we assert here? */
+      break;
+
    case ir_binop_add:
    case ir_binop_sub:
    case ir_binop_mul:




More information about the mesa-commit mailing list