From: Rob Clark Date: Mon, 26 May 2014 13:03:09 +0000 (-0400) Subject: freedreno/a3xx: texture fixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa78c4586d42856dcc86b143c2e72c05a1422016;p=mesa.git freedreno/a3xx: texture fixes Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c index 2081775083a..f28919f474e 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c @@ -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: