[PATCH 1/3] r600: add span support for 2D tiling

Matt Turner mattst88 at gmail.com
Thu May 27 07:55:59 PDT 2010


> +static inline GLint r600_log2(GLint n)
> +{
> +       GLint log2 = 0;
> +
> +       while (n >>= 1)
> +               ++log2;
> +       return log2;
> +}

Does mesa not provide something like this?

Matt


More information about the dri-devel mailing list