summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-08-07 20:16:39 -0700
committerCorbin Simpson <[email protected]>2009-08-07 20:50:42 -0700
commit847fcb645c1d0c69617f0cafe8e6410e13f08fa6 (patch)
tree525a20ed0f38dbc22c9179eefcadad826af268b1 /src/gallium/drivers/r300/r300_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/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 0164f050961..590052509cc 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -22,13 +22,6 @@
#include "r300_texture.h"
-/* XXX maths need to go to util */
-
-static int minify(int i)
-{
- return MAX2(1, i >> 1);
-}
-
static void r300_setup_texture_state(struct r300_texture* tex,
unsigned width,
unsigned height,