Re: [Mesa-dev] [PATCH] gallivm: fix rsq behavior

2013-07-11 Thread Roland Scheidegger
Am 11.07.2013 18:18, schrieb Zack Rusin: > 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. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/gal

[Mesa-dev] [PATCH] gallivm: fix rsq behavior

2013-07-11 Thread Zack Rusin
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. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c |2 -- 1 file changed, 2