summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_texture.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-08-07 20:16:39 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-08-07 20:50:42 -0700
commit847fcb645c1d0c69617f0cafe8e6410e13f08fa6 (patch)
tree525a20ed0f38dbc22c9179eefcadad826af268b1 /src/gallium/drivers/softpipe/sp_texture.c
parentc58133b81ab7c9ee12cac05c4671a87e34708a66 (diff)
gallium: Move minify() to u_math.
minify() is usually used in mipmap size calculation. Strangely enough, we all defined it as MAX2(1, d >> 1); imagine that. :3
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_texture.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 4af520e3fd..b7e52af032 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -48,11 +48,6 @@
/* Simple, maximally packed layout.
*/
-static unsigned minify( unsigned d )
-{
- return MAX2(1, d>>1);
-}
-
/* Conventional allocation path for non-display textures:
*/