Mesa (master): st: rename a helper function

Brian Paul brianp at kemper.freedesktop.org
Mon Apr 6 20:07:43 UTC 2009


Module: Mesa
Branch: master
Commit: a07e68df6826d979d6a9575d17599f14afd51fe9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a07e68df6826d979d6a9575d17599f14afd51fe9

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Apr  6 14:00:03 2009 -0600

st: rename a helper function

---

 src/mesa/state_tracker/st_atom_sampler.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
index d7b9043..b7b0e50 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -48,7 +48,7 @@
  * Convert GLenum texcoord wrap tokens to pipe tokens.
  */
 static GLuint
-gl_wrap_to_sp(GLenum wrap)
+gl_wrap_xlate(GLenum wrap)
 {
    switch (wrap) {
    case GL_REPEAT:
@@ -149,9 +149,9 @@ update_samplers(struct st_context *st)
             texobj = st_get_default_texture(st);
          }
 
-         sampler->wrap_s = gl_wrap_to_sp(texobj->WrapS);
-         sampler->wrap_t = gl_wrap_to_sp(texobj->WrapT);
-         sampler->wrap_r = gl_wrap_to_sp(texobj->WrapR);
+         sampler->wrap_s = gl_wrap_xlate(texobj->WrapS);
+         sampler->wrap_t = gl_wrap_xlate(texobj->WrapT);
+         sampler->wrap_r = gl_wrap_xlate(texobj->WrapR);
 
          sampler->min_img_filter = gl_filter_to_img_filter(texobj->MinFilter);
          sampler->min_mip_filter = gl_filter_to_mip_filter(texobj->MinFilter);




More information about the mesa-commit mailing list