Re: [Mesa3d-dev] [PATCH] glsl: optimize sqrt

2010-03-29 Thread Brian Paul
Roland Scheidegger wrote: > On 29.03.2010 04:50, Marek Olšák wrote: >> We were talking a bit on IRC that the GLSL compiler implements the sqrt >> function somewhat inefficiently. Instead of rsq+rcp+cmp instructions as >> is in the original code, the proposed patch uses just rsq+mul. Please >> see

Re: [Mesa3d-dev] [PATCH] glsl: optimize sqrt

2010-03-29 Thread Roland Scheidegger
On 29.03.2010 04:50, Marek Olšák wrote: > We were talking a bit on IRC that the GLSL compiler implements the sqrt > function somewhat inefficiently. Instead of rsq+rcp+cmp instructions as > is in the original code, the proposed patch uses just rsq+mul. Please > see the patch log for further explan

[Mesa3d-dev] [PATCH] glsl: optimize sqrt

2010-03-28 Thread Marek Olšák
We were talking a bit on IRC that the GLSL compiler implements the sqrt function somewhat inefficiently. Instead of rsq+rcp+cmp instructions as is in the original code, the proposed patch uses just rsq+mul. Please see the patch log for further explanation, and please review. -Marek From 9b834a79a1