> +static inline GLint r600_log2(GLint n) > +{ > + GLint log2 = 0; > + > + while (n >>= 1) > + ++log2; > + return log2; > +} Does mesa not provide something like this? Matt _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel