aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nv30_fragtex.c
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-08-19 22:47:03 +0200
committerLuca Barbieri <[email protected]>2010-08-21 20:42:15 +0200
commit928cce672a613b2f7bfa5563eca828327b16dc27 (patch)
treebe58564ae45c88b663bf841a79695d47cb3be7c5 /src/gallium/drivers/nvfx/nv30_fragtex.c
parent1dea9bc369dea1215c9e10bf6d52507e618d11ca (diff)
nvfx: fix lodbias
Diffstat (limited to 'src/gallium/drivers/nvfx/nv30_fragtex.c')
-rw-r--r--src/gallium/drivers/nvfx/nv30_fragtex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nv30_fragtex.c b/src/gallium/drivers/nvfx/nv30_fragtex.c
index db8a8fc4b08..0c3d43fd573 100644
--- a/src/gallium/drivers/nvfx/nv30_fragtex.c
+++ b/src/gallium/drivers/nvfx/nv30_fragtex.c
@@ -21,7 +21,7 @@ nv30_sampler_state_init(struct pipe_context *pipe,
ps->en |= NV34TCL_TX_ENABLE_ANISO_2X;
}
- limit = CLAMP(cso->lod_bias, -16.0, 15.0);
+ limit = CLAMP(cso->lod_bias, -16.0, 15.0 + (255.0 / 256.0));
ps->filt |= (int)(cso->lod_bias * 256.0) & 0x1fff;
ps->max_lod = (int)CLAMP(cso->max_lod, 0.0, 15.0);