Re: [Mesa-dev] [PATCH] gallivm: fix conversion for pure integer formats

2012-12-17 Thread Jose Fonseca
Nice find Roland. Reviewed-by: Jose Fonseca Jose - Original Message - > From: Roland Scheidegger > > Since the idea is to just expand or shrink the bit width but not > otherwise do > conversion we also need to adjust the sign bit according to src, > otherwise > the conversion code wil

[Mesa-dev] [PATCH] gallivm: fix conversion for pure integer formats

2012-12-17 Thread sroland
From: Roland Scheidegger Since the idea is to just expand or shrink the bit width but not otherwise do conversion we also need to adjust the sign bit according to src, otherwise the conversion code will incorrectly clamp the values. (Since this only works for casting to ordinary floats the norm a