projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e3cbeb
)
st/mesa: clamp gl_constants::MaxVarying against MAX_VARYING
author
Brian Paul
<brianp@vmware.com>
Thu, 2 Sep 2010 18:58:58 +0000
(12:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 2 Sep 2010 19:00:10 +0000
(13:00 -0600)
Don't try to use more generic varying vars than core Mesa supports.
Fixes fd.o bug 29959.
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 6cd74db897b34ad1c82804a2d9429ee2ecfd1a19..acb9526c01c1b2a280a83cc4bee34f23571d621e 100644
(file)
--- a/
src/mesa/state_tracker/st_extensions.c
+++ b/
src/mesa/state_tracker/st_extensions.c
@@
-168,6
+168,7
@@
void st_init_limits(struct st_context *st)
* subtract the 2 colors to get the maximum number of varyings (generic
* attributes) supported by a driver. */
c->MaxVarying = screen->get_param(screen, PIPE_CAP_MAX_FS_INPUTS) - 2;
+ c->MaxVarying = MIN2(c->MaxVarying, MAX_VARYING);
}