diff options
author | Marek Olšák <[email protected]> | 2010-05-08 19:51:48 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-08 23:03:45 +0200 |
commit | ceafb391e60f63dba1cb998b00ef008d5364e61b (patch) | |
tree | 8fd9f10f18cc951f0503afb5877a005f52fa87ee /src/gallium | |
parent | 71584d0cc75dda3c579a2a0cb6c1ac9591f7d5c9 (diff) |
r300g: fix glean/pointSprite using lodbias correction
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |