[Mesa-dev] [PATCH] gallium: fixup definitions of the rsq and sqrt
Brian Paul
brianp at vmware.com
Thu Jul 11 15:25:53 PDT 2013
On 07/11/2013 01:44 PM, Zack Rusin wrote:
> GLSL spec says that rsq is undefined for src<=0, but the D3D10
> spec says it needs to be a NaN, so lets stop taking an absolute
> value of the source which completely breaks that behavior. For
> the gl program we can simply insert an extra abs instrunction
> which produces the desired behavior there.
>
> Signed-off-by: Zack Rusin <zackr at vmware.com>
> ---
>
Reviewed-by: Brian Paul <brianp at vmware.com>
Also, GLSL's inversesqrt() doesn't say anything about absolute value.
-Brian
More information about the mesa-dev
mailing list