projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6fb88f
)
radeon: oops didn't need this logbase2 fn
author
Dave Airlie
<airlied@redhat.com>
Wed, 19 Jan 2011 06:17:03 +0000
(16:17 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 19 Jan 2011 06:17:03 +0000
(16:17 +1000)
src/mesa/drivers/dri/radeon/radeon_texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_texstate.c
b/src/mesa/drivers/dri/radeon/radeon_texstate.c
index e972a67c4bf60713d3f9d372cae13fa9f7b67fad..9ba98e303a777b8ab63860ff945ee704724dd703 100644
(file)
--- 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)
{