projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4002b75
)
r300: Fix dumb mistake in LOD bias translation
author
Nicolai Haehnle
<nhaehnle@gmail.com>
Mon, 30 Jun 2008 06:37:13 +0000
(08:37 +0200)
committer
Nicolai Haehnle
<nhaehnle@gmail.com>
Mon, 30 Jun 2008 06:37:37 +0000
(08:37 +0200)
src/mesa/drivers/dri/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_state.c
b/src/mesa/drivers/dri/r300/r300_state.c
index 9e4cc777a98eaa8645cd45f7e2dc6e6f238e2f1a..f6f0c39066259a452553ff10e3bc6df824a47112 100644
(file)
--- a/
src/mesa/drivers/dri/r300/r300_state.c
+++ b/
src/mesa/drivers/dri/r300/r300_state.c
@@
-1388,7
+1388,7
@@
static GLuint translate_lod_bias(GLfloat bias)
b = (1 << 9)-1;
else if (b < -(1 << 9))
b = -(1 << 9);
- return ((
GLuint)b) << R300_LOD_BIAS_SHIFT
;
+ return ((
(GLuint)b) << R300_LOD_BIAS_SHIFT) & R300_LOD_BIAS_MASK
;
}
static void r300SetupTextures(GLcontext * ctx)