gallium: Move minify() to u_math.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 8 Aug 2009 03:16:39 +0000 (20:16 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 8 Aug 2009 03:50:42 +0000 (20:50 -0700)
commit847fcb645c1d0c69617f0cafe8e6410e13f08fa6
tree525a20ed0f38dbc22c9179eefcadad826af268b1
parentc58133b81ab7c9ee12cac05c4671a87e34708a66
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
src/gallium/auxiliary/util/u_math.h
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/i915simple/i915_texture.c
src/gallium/drivers/i965simple/brw_tex_layout.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/softpipe/sp_texture.c