summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_tex_sample.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-05-09 00:17:01 -0400
committerBrian Paul <brianp@vmware.com>2011-05-12 16:37:34 -0600
commitc5ac8a8aa2a9fe751453c1fcc8539b7dae5d473c (patch)
treec8062b45796751933f938bce095d0b9c3667e33a /src/gallium/drivers/softpipe/sp_tex_sample.c
parent48a0a096f878d1e627226eae520847063473b17f (diff)
downloadexternal_mesa3d-c5ac8a8aa2a9fe751453c1fcc8539b7dae5d473c.zip
external_mesa3d-c5ac8a8aa2a9fe751453c1fcc8539b7dae5d473c.tar.gz
external_mesa3d-c5ac8a8aa2a9fe751453c1fcc8539b7dae5d473c.tar.bz2
Remove redundant util_unsigned_logbase2
util_logbase2 is exactly the same function. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_sample.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 02892c1..1446aee 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -2243,8 +2243,8 @@ sp_sampler_variant_bind_view( struct sp_sampler_variant *samp,
samp->view = view;
samp->cache = tex_cache;
- samp->xpot = util_unsigned_logbase2( texture->width0 );
- samp->ypot = util_unsigned_logbase2( texture->height0 );
+ samp->xpot = util_logbase2( texture->width0 );
+ samp->ypot = util_logbase2( texture->height0 );
samp->level = view->u.tex.first_level;
}