a5xx: remove one of the MIPFILTER_LINEAR bits
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 4 Jul 2017 13:38:23 +0000 (09:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 4 Jul 2017 22:27:57 +0000 (18:27 -0400)
It doesn't appear to do what we want. Removing this bit makes
lodclamp-between as well as a number of dEQP tests pass, with no visible
ill effect.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_texture.c

index 1adfd3fa02ae9324eb386fd3f8533d92d60c5b92..a546cfc33292915b2cb29f43090a8490e7d34e17 100644 (file)
@@ -123,7 +123,6 @@ fd5_sampler_state_create(struct pipe_context *pctx,
                A5XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r, clamp_to_edge, &so->needs_border));
 
        so->texsamp1 =
-               COND(miplinear, A5XX_TEX_SAMP_1_MIPFILTER_LINEAR_FAR) |
                COND(!cso->seamless_cube_map, A5XX_TEX_SAMP_1_CUBEMAPSEAMLESSFILTOFF) |
                COND(!cso->normalized_coords, A5XX_TEX_SAMP_1_UNNORM_COORDS);