Mesa (master): radeon: oops didn't need this logbase2 fn

Dave Airlie airlied at kemper.freedesktop.org
Tue Jan 18 22:17:20 PST 2011


Module: Mesa
Branch: master
Commit: 4832403c38183380f98713bddb077b5179ae073f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4832403c38183380f98713bddb077b5179ae073f

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jan 19 16:17:03 2011 +1000

radeon: oops didn't need this logbase2 fn

---

 src/mesa/drivers/dri/radeon/radeon_texstate.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c
index e972a67..9ba98e3 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texstate.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texstate.c
@@ -639,21 +639,6 @@ void radeonSetTexOffset(__DRIcontext * pDRICtx, GLint texname,
 	}
 }
 
-static int
-logbase2(int n)
-{
-   GLint i = 1;
-   GLint log2 = 0;
-
-   while (n > i) {
-      i *= 2;
-      log2++;
-   }
-
-   return log2;
-}
-
-
 void radeonSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, GLint texture_format,
 			 __DRIdrawable *dPriv)
 {



More information about the mesa-commit mailing list