summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-09-01 21:12:10 -0700
committerIan Romanick <[email protected]>2010-09-09 15:39:51 -0700
commit3a5ce85cfa4914711e56c8cf831699242618928e (patch)
tree524740df447147a9269d02dea9c599f2c38534af /src/glsl/ir.cpp
parent6dcca5a308efd7a85caa52f970ed020926c487e9 (diff)
glsl2: Add ir_unop_noise
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 9ac24858958..b0945431ada 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -196,6 +196,8 @@ ir_expression::get_num_operands(ir_expression_operation op)
1, /* ir_unop_dFdx */
1, /* ir_unop_dFdy */
+ 1, /* ir_unop_noise */
+
2, /* ir_binop_add */
2, /* ir_binop_sub */
2, /* ir_binop_mul */
@@ -261,6 +263,7 @@ static const char *const operator_strs[] = {
"cos",
"dFdx",
"dFdy",
+ "noise",
"+",
"-",
"*",