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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex Deucher wrote:
On Thu, May 27, 2010 at 10:55 AM, Matt Turner <mattst88@xxxxxxxxx> 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

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


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux