From: Marek Olšák Date: Sat, 8 May 2010 17:51:48 +0000 (+0200) Subject: r300g: fix glean/pointSprite using lodbias correction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceafb391e60f63dba1cb998b00ef008d5364e61b;p=mesa.git r300g: fix glean/pointSprite using lodbias correction --- diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index fe3eae9805f..af5bf445849 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -906,7 +906,7 @@ static void* sampler->min_lod = MAX2((unsigned)state->min_lod, 0); sampler->max_lod = MAX2((unsigned)ceilf(state->max_lod), 0); - lod_bias = CLAMP((int)(state->lod_bias * 32), -(1 << 9), (1 << 9) - 1); + lod_bias = CLAMP((int)(state->lod_bias * 32 + 1), -(1 << 9), (1 << 9) - 1); sampler->filter1 |= lod_bias << R300_LOD_BIAS_SHIFT;