On Thu, May 27, 2010 at 10:55 AM, Matt Turner <matts...@gmail.com> wrote:
>> +static inline GLint r600_log2(GLint n)
>> +{
>> +       GLint log2 = 0;
>> +
>> +       while (n >>= 1)
>> +               ++log2;
>> +       return log2;
>> +}
>
> Does mesa not provide something like this?

The only one I could find was a gallium utility function.

Alex
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to