freedreno/a3xx: add LOD_BIAS
authorRob Clark <robclark@freedesktop.org>
Sat, 27 Sep 2014 15:45:26 +0000 (11:45 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 27 Sep 2014 17:34:07 +0000 (13:34 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_texture.c

index 8308674178d83ad1de967ab562ae2ca98b0aba51..436d51af7b649064dd68ccec398fd9d3169489ec 100644 (file)
@@ -109,6 +109,7 @@ fd3_sampler_state_create(struct pipe_context *pctx,
 
        if (cso->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) {
                so->texsamp1 =
+                               A3XX_TEX_SAMP_1_LOD_BIAS(cso->lod_bias) |
                                A3XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) |
                                A3XX_TEX_SAMP_1_MAX_LOD(cso->max_lod);
        } else {