projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71584d0
)
r300g: fix glean/pointSprite using lodbias correction
author
Marek Olšák
<maraeo@gmail.com>
Sat, 8 May 2010 17:51:48 +0000
(19:51 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 8 May 2010 21:03:45 +0000
(23:03 +0200)
src/gallium/drivers/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_state.c
b/src/gallium/drivers/r300/r300_state.c
index fe3eae9805f2825b22045bced046fb188fe79c43..af5bf445849e4a4987991016ddbe69ca1981a086 100644
(file)
--- 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;