diff options
author | Kenneth Graunke <[email protected]> | 2010-10-14 13:37:03 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-10-14 15:59:47 -0700 |
commit | d85d25dd1f4fd281bd210ba6ba5135ba1e3b535f (patch) | |
tree | 9d2af431818f346d1df9c0701737577e5e24da16 /src/glsl/ir.cpp | |
parent | 510c503762a228db2b3d6804f5f5c7af9be1a920 (diff) |
glsl: Add a new ir_unop_round_even opcode for GLSL 1.30's roundEven.
Also, update ir_to_mesa's "1.30 is unsupported" case to "handle" it.
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index fd1c5d90718..87e78eee056 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -216,6 +216,7 @@ ir_expression::get_num_operands(ir_expression_operation op) 1, /* ir_unop_ceil */ 1, /* ir_unop_floor */ 1, /* ir_unop_fract */ + 1, /* ir_unop_round_even */ 1, /* ir_unop_sin */ 1, /* ir_unop_cos */ @@ -288,6 +289,7 @@ static const char *const operator_strs[] = { "ceil", "floor", "fract", + "round_even", "sin", "cos", "dFdx", |