r300g: fix glean/pointSprite using lodbias correction
This commit is contained in:
@@ -906,7 +906,7 @@ static void*
|
|||||||
sampler->min_lod = MAX2((unsigned)state->min_lod, 0);
|
sampler->min_lod = MAX2((unsigned)state->min_lod, 0);
|
||||||
sampler->max_lod = MAX2((unsigned)ceilf(state->max_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;
|
sampler->filter1 |= lod_bias << R300_LOD_BIAS_SHIFT;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user