diff options
author | Marek Olšák <[email protected]> | 2010-07-09 00:16:49 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-07-09 00:16:49 +0200 |
commit | 392a2515c0967c395be098cac6a37f325dd66b90 (patch) | |
tree | 91c9c5e139d729e92b3db0c4005ff0dc582f4576 /src/gallium/drivers/r300/r300_state.c | |
parent | 61a26cdfdc9c75a83c0d362c973d5436fe077be4 (diff) |
r300g: fix texturing with negative lod bias
This should fix FDO bugs #28437 and #28625.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-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 4fbe8bfa4e6..b0722cb95f6 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1172,7 +1172,7 @@ static void* 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) & R300_LOD_BIAS_MASK; /* This is very high quality anisotropic filtering for R5xx. * It's good for benchmarking the performance of texturing but |