diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-09 14:42:41 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-09 14:44:39 -0700 |
commit | b843c7a20c2d65494f30eb82622ae7db380f581a (patch) | |
tree | d39710afa28855bbd8a7684b22e97c9fc0177600 /ir.cpp | |
parent | cbd881da3fd2a68272988cf7fd21dfe006d47c8c (diff) |
Implement dFdx, dFdy, and fwidth via new expression opcodes.
Diffstat (limited to 'ir.cpp')
-rw-r--r-- | ir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -76,6 +76,9 @@ ir_expression::get_num_operands(ir_expression_operation op) 1, /* ir_unop_sin */ 1, /* ir_unop_cos */ + 1, /* ir_unop_dFdx */ + 1, /* ir_unop_dFdy */ + 2, /* ir_binop_add */ 2, /* ir_binop_sub */ 2, /* ir_binop_mul */ @@ -136,6 +139,8 @@ static const char *const operator_strs[] = { "floor", "sin", "cos", + "dFdx", + "dFdy", "+", "-", "*", |