[Mesa-dev] [PATCH 11/11] glsl: Optimize X / X == 1
Matt Turner
mattst88 at gmail.com
Thu Aug 7 14:38:36 PDT 2014
On Thu, Aug 7, 2014 at 2:13 PM, Patrick Baggett
<baggett.patrick at gmail.com> wrote:
> Would this be conformant to GLSL spec if X had a runtime value of 0? Seems
> unsafe to replace X / X with 1 without a runtime test...maybe GLSL spec
> allows such optimizations.
The GLSL spec says
> Dividing by zero does not cause an exception but does result in an unspecified value.
More information about the mesa-dev
mailing list