Re: [Mesa-dev] [PATCH 03/19] mesa: Optimize unbind_texobj_from_texunits()

2014-04-22 Thread Brian Paul
On 04/21/2014 03:57 PM, Fredrik Höglund wrote: The texture can only be bound to the index that corresponds to its target, so there is no need to loop over all possible indices for every unit and checking if the texture is bound to it. --- v2: Restructure the loop to avoid using continue, and use

[Mesa-dev] [PATCH 03/19] mesa: Optimize unbind_texobj_from_texunits()

2014-04-21 Thread Fredrik Höglund
The texture can only be bound to the index that corresponds to its target, so there is no need to loop over all possible indices for every unit and checking if the texture is bound to it. --- v2: Restructure the loop to avoid using continue, and use &= ~(1 << index) to clear bits in _BoundText