diff options
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir.cpp | 3 | ||||
-rw-r--r-- | src/glsl/ir.h | 2 |
2 files changed, 5 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", "+", "-", "*", diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 0d933024df0..80a647e0dc2 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -650,6 +650,8 @@ enum ir_expression_operation { ir_unop_dFdy, /*@}*/ + ir_unop_noise, + ir_binop_add, ir_binop_sub, ir_binop_mul, |