freedreno/a3xx: texture fixes
authorRob Clark <robclark@freedesktop.org>
Mon, 26 May 2014 13:03:09 +0000 (09:03 -0400)
committerRob Clark <robclark@freedesktop.org>
Mon, 26 May 2014 13:03:09 +0000 (09:03 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_texture.c

index 2081775083aaf2c5b4c9f074445e314d2ddb207d..f28919f474e38a4145f0a3a08d148821587aa758 100644 (file)
@@ -48,12 +48,14 @@ tex_clamp(unsigned wrap)
        case PIPE_TEX_WRAP_REPEAT:
                return A3XX_TEX_REPEAT;
        case PIPE_TEX_WRAP_CLAMP:
-       case PIPE_TEX_WRAP_CLAMP_TO_BORDER:
        case PIPE_TEX_WRAP_CLAMP_TO_EDGE:
                return A3XX_TEX_CLAMP_TO_EDGE;
+       case PIPE_TEX_WRAP_CLAMP_TO_BORDER:
+               return A3XX_TEX_CLAMP_TO_BORDER;
        case PIPE_TEX_WRAP_MIRROR_CLAMP:
        case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER:
        case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE:
+               return A3XX_TEX_MIRROR_CLAMP;
        case PIPE_TEX_WRAP_MIRROR_REPEAT:
                return A3XX_TEX_MIRROR_REPEAT;
        default: