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

Kenneth Graunke kenneth at whitecape.org
Tue Jul 3 15:50:36 PDT 2012

On 07/03/2012 03:41 PM, Eric Anholt wrote:
> I can't find spec text explicitly justifying it, but I was quite sure
> that we have total leeway to be inconsistent between constant expression
> handling (CPU) and variable expression handling -- you just need to be
> invariant in constant expression handling between shader targets, not
> between a constant expression and a variable expression operating on the
> same values.
> Otherwise, we don't get to use sinf and friends in
> ir_constant_expression.cpp.

Fair enough.  If Ian's okay with it, then I'm okay with it.

More information about the mesa-dev mailing list