~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nvfx/nv40_fragtex.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
                          struct nvfx_sampler_state *ps,
9
9
                          const struct pipe_sampler_state *cso)
10
10
{
11
 
        float limit;
12
11
        if (cso->max_anisotropy >= 2) {
13
12
                /* no idea, binary driver sets it, works without it.. meh.. */
14
13
                ps->wrap |= (1 << 5);
29
28
                        ps->en |= NV40_3D_TEX_ENABLE_ANISO_2X;
30
29
        }
31
30
 
32
 
        limit = CLAMP(cso->lod_bias, -16.0, 15.0 + (255.0 / 256.0));
33
31
        ps->filt |= (int)(cso->lod_bias * 256.0) & 0x1fff;
34
32
 
35
33
        ps->max_lod = (int)(CLAMP(cso->max_lod, 0.0, 15.0 + (255.0 / 256.0)) * 256.0);