[Mesa-dev] [PATCH 11/29] mesa: Use bitmask/ffs to iterate enabled lights for building ff shader keys.

Erik Faye-Lund kusmabite at gmail.com
Tue May 31 14:41:46 UTC 2016


On Sat, May 28, 2016 at 12:31 PM, Mathias Fröhlich
<Mathias.Froehlich at gmx.net> wrote:
> So the xor mask handing is non local to the place where we do the
> computation of i.
>
> Brian pointed me to the u_bit_scan function heavily used in gallium. That
> definitely
>
> helps for the basic problem I personally have with this type of loops.
>
> Does that also somehow help for your concerns?

Yes; u_bit_scan or similar mitigates my concerns!


More information about the mesa-dev mailing list