[Mesa-dev] [PATCH 3/3] tgsi: implement ROUND and ROUNDEVEN instructions in exec module

Brian Paul brianp at vmware.com
Tue Jul 3 08:47:12 PDT 2012


On 07/02/2012 06:33 PM, Ian Romanick wrote:
> On 07/02/2012 04:00 PM, Brian Paul wrote:
>
> Won't this cause a constant and a non-constant to generate a different
> value? The implementation of round() used in constant folding really
> needs to be the same as the one used by the code generator. Right?

Yes, I'll fix that and repost.

But note that there's lots of places where compile-time evaluation 
might give different results than render-time evaluation (the trig 
functions come to mind).

-Brian




More information about the mesa-dev mailing list