From: Eric Anholt Date: Tue, 29 Jun 2010 23:36:42 +0000 (-0700) Subject: ir_to_mesa: Add support for dFdx, dFdy. X-Git-Tag: mesa-7.9-rc1~1173^2~564 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba9bd708cb3480817e18cc47e57d83a4e4c305bb;p=platform%2Fupstream%2Fmesa.git ir_to_mesa: Add support for dFdx, dFdy. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index f045181..152cb1d 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -628,6 +628,14 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_cos: ir_to_mesa_emit_scalar_op1(ir, OPCODE_COS, result_dst, op[0]); break; + + case ir_unop_dFdx: + ir_to_mesa_emit_op1(ir, OPCODE_DDX, result_dst, op[0]); + break; + case ir_unop_dFdy: + ir_to_mesa_emit_op1(ir, OPCODE_DDY, result_dst, op[0]); + break; + case ir_binop_add: ir_to_mesa_emit_op2(ir, OPCODE_ADD, result_dst, op[0], op[1]); break;