aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-12-08 15:19:44 -0700
committerBrian Paul <[email protected]>2012-12-14 06:33:07 -0700
commitf4896cea0435905eb4871c78e32da6984e4d344c (patch)
tree251a0d704e1dd49c8d1e8f7e62f1e8fe951b90d2 /src/mesa/swrast
parent9e41b0badbab97c9db03d5825f91533c69e4f9f9 (diff)
swrast: make _mesa_get_texel_fetch_func() static
Not called from any other file.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_texfetch.c8
-rw-r--r--src/mesa/swrast/s_texfetch.h3
2 files changed, 4 insertions, 7 deletions
diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c
index 86b01a0b346..9117885e791 100644
--- a/src/mesa/swrast/s_texfetch.c
+++ b/src/mesa/swrast/s_texfetch.c
@@ -1175,8 +1175,8 @@ texfetch_funcs[] =
};
-FetchTexelFunc
-_mesa_get_texel_fetch_func(gl_format format, GLuint dims)
+static FetchTexelFunc
+get_texel_fetch_func(gl_format format, GLuint dims)
{
#ifdef DEBUG
/* check that the table entries are sorted by format name */
@@ -1198,7 +1198,7 @@ _mesa_get_texel_fetch_func(gl_format format, GLuint dims)
case 3:
return texfetch_funcs[format].Fetch3D;
default:
- assert(0 && "bad dims in _mesa_get_texel_fetch_func");
+ assert(0 && "bad dims in get_texel_fetch_func");
return NULL;
}
}
@@ -1220,7 +1220,7 @@ set_fetch_functions(struct gl_sampler_object *samp,
format = _mesa_get_srgb_format_linear(format);
}
- texImage->FetchTexel = _mesa_get_texel_fetch_func(format, dims);
+ texImage->FetchTexel = get_texel_fetch_func(format, dims);
ASSERT(texImage->FetchTexel);
}
diff --git a/src/mesa/swrast/s_texfetch.h b/src/mesa/swrast/s_texfetch.h
index 33950ce440c..4e4397e13af 100644
--- a/src/mesa/swrast/s_texfetch.h
+++ b/src/mesa/swrast/s_texfetch.h
@@ -29,9 +29,6 @@
#include "swrast/s_context.h"
-extern FetchTexelFunc
-_mesa_get_texel_fetch_func(gl_format format, GLuint dims);
-
void
_mesa_update_fetch_functions(struct gl_context *ctx, GLuint unit);