Re: [Mesa-dev] [PATCH] gallivm: eliminate a unnecessary AND with unorm lerps

2016-05-24 Thread Jose Fonseca
On 13/05/16 11:08, srol...@vmware.com wrote: From: Roland Scheidegger Instead of doing a add and then mask out the upper bits, we can simply do a add with a half wide type (this, of course, assumes the hw can actually do it...), so we'll get the required zero in the upper bits automatically. --

[Mesa-dev] [PATCH] gallivm: eliminate a unnecessary AND with unorm lerps

2016-05-12 Thread sroland
From: Roland Scheidegger Instead of doing a add and then mask out the upper bits, we can simply do a add with a half wide type (this, of course, assumes the hw can actually do it...), so we'll get the required zero in the upper bits automatically. --- src/gallium/auxiliary/gallivm/lp_bld_arit.c