[Mesa-dev] [PATCH 1/2] gallivm: Add no_rho_opt debug option

2013-04-16 Thread sroland
From: Roland Scheidegger srol...@vmware.com This will calculate rho correctly as sqrt(max((ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2), (ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2)) instead of max(|ds/dx|,|dt/dx|,|dr/dx|,|ds/dy|,|dt/dy,|dr/dy|) (for 3 coords - 2 coords work analogous, for 1 coord there's no point

Re: [Mesa-dev] [PATCH 1/2] gallivm: Add no_rho_opt debug option

2013-04-16 Thread Brian Paul
On 04/16/2013 01:07 PM, srol...@vmware.com wrote: From: Roland Scheideggersrol...@vmware.com This will calculate rho correctly as sqrt(max((ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2), (ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2)) instead of max(|ds/dx|,|dt/dx|,|dr/dx|,|ds/dy|,|dt/dy,|dr/dy|) (for 3 coords - 2

Re: [Mesa-dev] [PATCH 1/2] gallivm: Add no_rho_opt debug option

2013-04-16 Thread Roland Scheidegger
Am 16.04.2013 21:41, schrieb Brian Paul: On 04/16/2013 01:07 PM, srol...@vmware.com wrote: From: Roland Scheideggersrol...@vmware.com This will calculate rho correctly as sqrt(max((ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2), (ds/dx)^2 + (dt/dx)^2 + (dr/dx)^2)) instead of