summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-08 10:07:57 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-08 10:07:57 -0700
commitdca71c40ea6ae70c6af380653df5b1073dfc9475 (patch)
tree0bb07ad80b9c4fdb0ded7773c5fe5f8bb4b554a2
parent8ce6d6b97e6e90451e7372fe3d94e7e31b0ea569 (diff)
remove translate_compare_func(), use i915_translate_compare_func()
-rw-r--r--src/mesa/pipe/i915simple/i915_state.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state.c b/src/mesa/pipe/i915simple/i915_state.c
index d0fe7d2a52..bfd2f8894e 100644
--- a/src/mesa/pipe/i915simple/i915_state.c
+++ b/src/mesa/pipe/i915simple/i915_state.c
@@ -90,24 +90,6 @@ static unsigned translate_mip_filter( unsigned filter )
}
}
-static unsigned translate_compare_func(unsigned func)
-{
- switch (func) {
- case PIPE_FUNC_NEVER:
- case PIPE_FUNC_LESS:
- case PIPE_FUNC_EQUAL:
- case PIPE_FUNC_LEQUAL:
- case PIPE_FUNC_GREATER:
- case PIPE_FUNC_NOTEQUAL:
- case PIPE_FUNC_GEQUAL:
- case PIPE_FUNC_ALWAYS:
- return 0;
- default:
- assert(0);
- return 0;
- }
-}
-
/* None of this state is actually used for anything yet.
*/
@@ -247,7 +229,7 @@ i915_create_sampler_state(struct pipe_context *pipe,
if (sampler->compare_mode == PIPE_TEX_COMPARE_R_TO_TEXTURE)
{
cso->state[0] |= (SS2_SHADOW_ENABLE |
- translate_compare_func(sampler->compare_func));
+ i915_translate_compare_func(sampler->compare_func));
minFilt = FILTER_4X4_FLAT;
magFilt = FILTER_4X4_FLAT;