[Mesa-dev] [PATCH] st/mesa: set the MaxVarying GLSL constant
Marek Olšák
maraeo at gmail.com
Sat Aug 28 10:08:28 PDT 2010
May I push this? It makes glsl-max-varyings pass with r300g.
Marek
On Wed, Aug 25, 2010 at 5:27 AM, Marek Olšák <maraeo at gmail.com> wrote:
> ---
> src/mesa/state_tracker/st_extensions.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c
> b/src/mesa/state_tracker/st_extensions.c
> index 90e7867..dacba2c 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -161,6 +161,9 @@ void st_init_limits(struct st_context *st)
> pc->MaxNativeTemps = screen->get_param(screen,
> PIPE_CAP_MAX_VS_TEMPS);
> pc->MaxNativeAddressRegs = screen->get_param(screen,
> PIPE_CAP_MAX_VS_ADDRS);
> pc->MaxNativeParameters = screen->get_param(screen,
> PIPE_CAP_MAX_VS_CONSTS);
> +
> + /* Subtract 2 color attributes. */
> + c->MaxVarying = screen->get_param(screen, PIPE_CAP_MAX_FS_INPUTS) - 2;
> }
>
>
> --
> 1.7.0.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100828/fdd72015/attachment.htm>
More information about the mesa-dev
mailing list