Re: [Mesa-dev] [PATCH] radeon/llvm: fix literals inlining

2012-12-17 Thread Tom Stellard
On Sat, Dec 15, 2012 at 05:53:26PM +0400, Vadim Girlin wrote: > Use bitwise comparison to check whether we can replace float literal > with inline constant (0.0, 0.5, 1.0), otherwise we can get unexpected > results for integer literals bitcasted to float. > > Fixes lockup with glsl-fs-unroll-out-p

[Mesa-dev] [PATCH] radeon/llvm: fix literals inlining

2012-12-15 Thread Vadim Girlin
Use bitwise comparison to check whether we can replace float literal with inline constant (0.0, 0.5, 1.0), otherwise we can get unexpected results for integer literals bitcasted to float. Fixes lockup with glsl-fs-unroll-out-param.shader_test on evergreen. Signed-off-by: Vadim Girlin --- lib/Ta