May I push this? It makes glsl-max-varyings pass with r300g.<br><br>Marek<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 5:27 AM, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">---<br>
src/mesa/state_tracker/st_extensions.c | 3 +++<br>
1 files changed, 3 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c<br>
index 90e7867..dacba2c 100644<br>
--- a/src/mesa/state_tracker/st_extensions.c<br>
+++ b/src/mesa/state_tracker/st_extensions.c<br>
@@ -161,6 +161,9 @@ void st_init_limits(struct st_context *st)<br>
pc->MaxNativeTemps = screen->get_param(screen, PIPE_CAP_MAX_VS_TEMPS);<br>
pc->MaxNativeAddressRegs = screen->get_param(screen, PIPE_CAP_MAX_VS_ADDRS);<br>
pc->MaxNativeParameters = screen->get_param(screen, PIPE_CAP_MAX_VS_CONSTS);<br>
+<br>
+ /* Subtract 2 color attributes. */<br>
+ c->MaxVarying = screen->get_param(screen, PIPE_CAP_MAX_FS_INPUTS) - 2;<br>
}<br>
<font color="#888888"><br>
<br>
--<br>
1.7.0.4<br>
<br>
</font></blockquote></div><br>