[PATCH 1/3] r600: add span support for 2D tiling
Brian Paul
brianp at vmware.com
Thu May 27 08:51:43 PDT 2010
Alex Deucher wrote:
> On Thu, May 27, 2010 at 10:55 AM, Matt Turner <mattst88 at 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.
There's a logbase2() function in teximage.c but it might not be
equivalent.
-Brian
More information about the dri-devel
mailing list