r600: fix tex clamp modes
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 28 Jul 2009 22:09:38 +0000 (18:09 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 28 Jul 2009 22:09:38 +0000 (18:09 -0400)
This makes texwrap look better.

src/mesa/drivers/dri/r600/r600_tex.c

index 444024ee7e0de763101ffeb9f21a8afa990db3aa..853f824b2c05f1d7683a47cc4f77246fb51725fd 100644 (file)
@@ -62,10 +62,10 @@ static unsigned int translate_wrap_mode(GLenum wrapmode)
        case GL_CLAMP: return SQ_TEX_CLAMP_HALF_BORDER;
        case GL_CLAMP_TO_EDGE: return SQ_TEX_CLAMP_LAST_TEXEL;
        case GL_CLAMP_TO_BORDER: return SQ_TEX_CLAMP_BORDER;
-       case GL_MIRRORED_REPEAT: return SQ_TEX_MIRROR_ONCE_HALF_BORDER;
-       case GL_MIRROR_CLAMP_EXT: return SQ_TEX_MIRROR;
-       case GL_MIRROR_CLAMP_TO_EDGE_EXT: return SQ_TEX_MIRROR_ONCE_BORDER;
-       case GL_MIRROR_CLAMP_TO_BORDER_EXT: return SQ_TEX_MIRROR_ONCE_LAST_TEXEL;
+       case GL_MIRRORED_REPEAT: return SQ_TEX_MIRROR;
+       case GL_MIRROR_CLAMP_EXT: return SQ_TEX_MIRROR_ONCE_HALF_BORDER;
+       case GL_MIRROR_CLAMP_TO_EDGE_EXT: return SQ_TEX_MIRROR_ONCE_LAST_TEXEL;
+       case GL_MIRROR_CLAMP_TO_BORDER_EXT: return SQ_TEX_MIRROR_ONCE_BORDER;
        default:
                _mesa_problem(NULL, "bad wrap mode in %s", __FUNCTION__);
                return 0;