Re: [Mesa-dev] [PATCH 1/3] mesa/glsl: add ir_unop_round

2012-07-02 Thread Kenneth Graunke
On 07/02/2012 03:59 PM, Brian Paul wrote: > The GLSL round() and roundEven() functions were both generating the > ir_unop_round_even instruction but the GLSL spec allows some leeway for > implementing round(). This change allows drivers to take advantage of > that. For i965, they still equate to

[Mesa-dev] [PATCH 1/3] mesa/glsl: add ir_unop_round

2012-07-02 Thread Brian Paul
The GLSL round() and roundEven() functions were both generating the ir_unop_round_even instruction but the GLSL spec allows some leeway for implementing round(). This change allows drivers to take advantage of that. For i965, they still equate to the same thing. --- src/glsl/builtins/ir/round.ir