diff options
author | Dave Airlie <[email protected]> | 2011-01-19 16:17:03 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-01-19 16:17:03 +1000 |
commit | 4832403c38183380f98713bddb077b5179ae073f (patch) | |
tree | ae8a71dee96fc9bdaaee209ce0dbb4f46f5853a0 /src/mesa | |
parent | c6fb88fc5a77ed7e40eda6db772990714c3b8c01 (diff) |
radeon: oops didn't need this logbase2 fn
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 e972a67c4bf..9ba98e303a7 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) { |