projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9832f92
)
gallium: fix MaxTextureCoordUnits init
author
Brian Paul
<brian.e.paul@gmail.com>
Sun, 4 Jan 2009 17:04:44 +0000
(10:04 -0700)
committer
Brian Paul
<brian.e.paul@gmail.com>
Sun, 4 Jan 2009 17:04:44 +0000
(10:04 -0700)
Fixes Cell regression.
src/mesa/state_tracker/st_extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index 7023659c17d435bdc608aac9cef62c1642be4f92..8ec2113f074457fa27a4d5e0d197e796d800195f 100644
(file)
--- a/
src/mesa/state_tracker/st_extensions.c
+++ b/
src/mesa/state_tracker/st_extensions.c
@@
-92,9
+92,10
@@
void st_init_limits(struct st_context *st)
= _min(screen->get_param(screen, PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS),
MAX_VERTEX_TEXTURE_IMAGE_UNITS);
- c->MaxTextureCoordUnits = MAX_TEXTURE_COORD_UNITS;
+ c->MaxTextureCoordUnits
+ = _min(c->MaxTextureImageUnits, MAX_TEXTURE_COORD_UNITS);
- c->MaxTextureUnits =
MIN2
(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
+ c->MaxTextureUnits =
_min
(c->MaxTextureImageUnits, c->MaxTextureCoordUnits);
c->MaxDrawBuffers
= _clamp(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),